## size 39
QUANDLES[39] := rec( total := -1, implemented := 13, size := 
39, rack := [ ] );
QUANDLES[39].implemented := 1;
QUANDLES[39].rack[1] := rec( size := 39, matrix :=
[ [ 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 39, 38, 37, 36, 35, 34, 33, 
      32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 
      14 ], [ 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 28, 27, 39, 38, 37, 
      36, 35, 34, 33, 32, 31, 30, 29, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 
      18, 17, 16 ], 
  [ 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 30, 29, 28, 27, 39, 38, 37, 
      36, 35, 34, 33, 32, 31, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 
      18 ], [ 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 32, 31, 30, 29, 28, 
      27, 39, 38, 37, 36, 35, 34, 33, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 
      22, 21, 20 ], 
  [ 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 34, 33, 32, 31, 30, 29, 28, 
      27, 39, 38, 37, 36, 35, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 
      22 ], [ 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 36, 35, 34, 33, 32, 
      31, 30, 29, 28, 27, 39, 38, 37, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 
      26, 25, 24 ], 
  [ 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 38, 37, 36, 35, 34, 33, 32, 
      31, 30, 29, 28, 27, 39, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 
      26 ], [ 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 27, 39, 38, 37, 36, 
      35, 34, 33, 32, 31, 30, 29, 28, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 
      17, 16, 15 ], 
  [ 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 29, 28, 27, 39, 38, 37, 36, 
      35, 34, 33, 32, 31, 30, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 
      17 ], [ 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 31, 30, 29, 28, 27, 
      39, 38, 37, 36, 35, 34, 33, 32, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 
      21, 20, 19 ], 
  [ 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 33, 32, 31, 30, 29, 28, 27, 
      39, 38, 37, 36, 35, 34, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 
      21 ], [ 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 35, 34, 33, 32, 31, 
      30, 29, 28, 27, 39, 38, 37, 36, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 
      25, 24, 23 ], 
  [ 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 37, 36, 35, 34, 33, 32, 31, 
      30, 29, 28, 27, 39, 38, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 
      25 ], [ 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 14, 26, 25, 
      24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 1, 13, 12, 11, 10, 9, 8, 7, 6, 
      5, 4, 3, 2 ], 
  [ 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 16, 15, 14, 26, 25, 
      24, 23, 22, 21, 20, 19, 18, 17, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 
      4 ], [ 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 18, 17, 16, 
      15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 5, 4, 3, 2, 1, 13, 12, 11, 10, 
      9, 8, 7, 6 ], 
  [ 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 20, 19, 18, 17, 16, 
      15, 14, 26, 25, 24, 23, 22, 21, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 
      8 ], [ 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 22, 21, 20, 
      19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 
      12, 11, 10 ], 
  [ 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 24, 23, 22, 21, 20, 
      19, 18, 17, 16, 15, 14, 26, 25, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 
      12 ], [ 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 
      23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 
      4, 3, 2, 1 ], 
  [ 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 15, 14, 26, 25, 24, 
      23, 22, 21, 20, 19, 18, 17, 16, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 
      3 ], [ 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 17, 16, 15, 
      14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 4, 3, 2, 1, 13, 12, 11, 10, 9, 
      8, 7, 6, 5 ], 
  [ 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 19, 18, 17, 16, 15, 
      14, 26, 25, 24, 23, 22, 21, 20, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 
      7 ], [ 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 21, 20, 19, 
      18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 
      11, 10, 9 ], 
  [ 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 23, 22, 21, 20, 19, 
      18, 17, 16, 15, 14, 26, 25, 24, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 
      11 ], [ 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 25, 24, 23, 
      22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 12, 11, 10, 9, 8, 7, 6, 5, 4, 
      3, 2, 1, 13 ], 
  [ 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 2, 1, 13, 12, 11, 10, 
      9, 8, 7, 6, 5, 4, 3, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28 
     ], [ 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 4, 3, 2, 1, 13, 
      12, 11, 10, 9, 8, 7, 6, 5, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 
      31, 30 ], 
  [ 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 6, 5, 4, 3, 2, 1, 13, 
      12, 11, 10, 9, 8, 7, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32 
     ], [ 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 8, 7, 6, 5, 4, 
      3, 2, 1, 13, 12, 11, 10, 9, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 
      35, 34 ], 
  [ 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 10, 9, 8, 7, 6, 5, 4, 
      3, 2, 1, 13, 12, 11, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36 
     ], [ 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 12, 11, 10, 9, 
      8, 7, 6, 5, 4, 3, 2, 1, 13, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 
      39, 38 ], 
  [ 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 1, 13, 12, 11, 10, 9, 
      8, 7, 6, 5, 4, 3, 2, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27 
     ], [ 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 3, 2, 1, 13, 
      12, 11, 10, 9, 8, 7, 6, 5, 4, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 
      31, 30, 29 ], 
  [ 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 5, 4, 3, 2, 1, 13, 
      12, 11, 10, 9, 8, 7, 6, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 
      31 ], [ 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 7, 6, 5, 4, 
      3, 2, 1, 13, 12, 11, 10, 9, 8, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 
      35, 34, 33 ], 
  [ 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 9, 8, 7, 6, 5, 4, 3, 
      2, 1, 13, 12, 11, 10, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 
      35 ], [ 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 11, 10, 9, 
      8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 
      39, 38, 37 ], 
  [ 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 
      7, 6, 5, 4, 3, 2, 1, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39 
     ] ]);
QUANDLES[39].implemented := 2;
QUANDLES[39].rack[2] := rec( size := 39, matrix :=
[ [ 1, 10, 6, 2, 11, 7, 3, 12, 8, 4, 13, 9, 5, 34, 37, 27, 30, 33, 36, 39, 
      29, 32, 35, 38, 28, 31, 18, 19, 20, 21, 22, 23, 24, 25, 26, 14, 15, 16, 
      17 ], [ 6, 2, 11, 7, 3, 12, 8, 4, 13, 9, 5, 1, 10, 36, 39, 29, 32, 35, 
      38, 28, 31, 34, 37, 27, 30, 33, 24, 25, 26, 14, 15, 16, 17, 18, 19, 20, 
      21, 22, 23 ], 
  [ 11, 7, 3, 12, 8, 4, 13, 9, 5, 1, 10, 6, 2, 38, 28, 31, 34, 37, 27, 30, 
      33, 36, 39, 29, 32, 35, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 14, 15, 
      16 ], [ 3, 12, 8, 4, 13, 9, 5, 1, 10, 6, 2, 11, 7, 27, 30, 33, 36, 39, 
      29, 32, 35, 38, 28, 31, 34, 37, 23, 24, 25, 26, 14, 15, 16, 17, 18, 19, 
      20, 21, 22 ], 
  [ 8, 4, 13, 9, 5, 1, 10, 6, 2, 11, 7, 3, 12, 29, 32, 35, 38, 28, 31, 34, 
      37, 27, 30, 33, 36, 39, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 14, 
      15 ], [ 13, 9, 5, 1, 10, 6, 2, 11, 7, 3, 12, 8, 4, 31, 34, 37, 27, 30, 
      33, 36, 39, 29, 32, 35, 38, 28, 22, 23, 24, 25, 26, 14, 15, 16, 17, 18, 
      19, 20, 21 ], 
  [ 5, 1, 10, 6, 2, 11, 7, 3, 12, 8, 4, 13, 9, 33, 36, 39, 29, 32, 35, 38, 
      28, 31, 34, 37, 27, 30, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 
      14 ], [ 10, 6, 2, 11, 7, 3, 12, 8, 4, 13, 9, 5, 1, 35, 38, 28, 31, 34, 
      37, 27, 30, 33, 36, 39, 29, 32, 21, 22, 23, 24, 25, 26, 14, 15, 16, 17, 
      18, 19, 20 ], 
  [ 2, 11, 7, 3, 12, 8, 4, 13, 9, 5, 1, 10, 6, 37, 27, 30, 33, 36, 39, 29, 
      32, 35, 38, 28, 31, 34, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 
      26 ], [ 7, 3, 12, 8, 4, 13, 9, 5, 1, 10, 6, 2, 11, 39, 29, 32, 35, 38, 
      28, 31, 34, 37, 27, 30, 33, 36, 20, 21, 22, 23, 24, 25, 26, 14, 15, 16, 
      17, 18, 19 ], 
  [ 12, 8, 4, 13, 9, 5, 1, 10, 6, 2, 11, 7, 3, 28, 31, 34, 37, 27, 30, 33, 
      36, 39, 29, 32, 35, 38, 26, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 
      25 ], [ 4, 13, 9, 5, 1, 10, 6, 2, 11, 7, 3, 12, 8, 30, 33, 36, 39, 29, 
      32, 35, 38, 28, 31, 34, 37, 27, 19, 20, 21, 22, 23, 24, 25, 26, 14, 15, 
      16, 17, 18 ], 
  [ 9, 5, 1, 10, 6, 2, 11, 7, 3, 12, 8, 4, 13, 32, 35, 38, 28, 31, 34, 37, 
      27, 30, 33, 36, 39, 29, 25, 26, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 
      24 ], [ 31, 32, 33, 34, 35, 36, 37, 38, 39, 27, 28, 29, 30, 14, 23, 19, 
      15, 24, 20, 16, 25, 21, 17, 26, 22, 18, 8, 11, 1, 4, 7, 10, 13, 3, 6, 
      9, 12, 2, 5 ], 
  [ 37, 38, 39, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 19, 15, 24, 20, 16, 
      25, 21, 17, 26, 22, 18, 14, 23, 10, 13, 3, 6, 9, 12, 2, 5, 8, 11, 1, 4, 
      7 ], [ 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 27, 28, 29, 24, 20, 16, 
      25, 21, 17, 26, 22, 18, 14, 23, 19, 15, 12, 2, 5, 8, 11, 1, 4, 7, 10, 
      13, 3, 6, 9 ], 
  [ 36, 37, 38, 39, 27, 28, 29, 30, 31, 32, 33, 34, 35, 16, 25, 21, 17, 26, 
      22, 18, 14, 23, 19, 15, 24, 20, 1, 4, 7, 10, 13, 3, 6, 9, 12, 2, 5, 8, 
      11 ], [ 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 27, 28, 21, 17, 26, 
      22, 18, 14, 23, 19, 15, 24, 20, 16, 25, 3, 6, 9, 12, 2, 5, 8, 11, 1, 4, 
      7, 10, 13 ], 
  [ 35, 36, 37, 38, 39, 27, 28, 29, 30, 31, 32, 33, 34, 26, 22, 18, 14, 23, 
      19, 15, 24, 20, 16, 25, 21, 17, 5, 8, 11, 1, 4, 7, 10, 13, 3, 6, 9, 12, 
      2 ], [ 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 27, 18, 14, 23, 
      19, 15, 24, 20, 16, 25, 21, 17, 26, 22, 7, 10, 13, 3, 6, 9, 12, 2, 5, 
      8, 11, 1, 4 ], 
  [ 34, 35, 36, 37, 38, 39, 27, 28, 29, 30, 31, 32, 33, 23, 19, 15, 24, 20, 
      16, 25, 21, 17, 26, 22, 18, 14, 9, 12, 2, 5, 8, 11, 1, 4, 7, 10, 13, 3, 
      6 ], [ 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 15, 24, 20, 
      16, 25, 21, 17, 26, 22, 18, 14, 23, 19, 11, 1, 4, 7, 10, 13, 3, 6, 9, 
      12, 2, 5, 8 ], 
  [ 33, 34, 35, 36, 37, 38, 39, 27, 28, 29, 30, 31, 32, 20, 16, 25, 21, 17, 
      26, 22, 18, 14, 23, 19, 15, 24, 13, 3, 6, 9, 12, 2, 5, 8, 11, 1, 4, 7, 
      10 ], [ 39, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 25, 21, 17, 
      26, 22, 18, 14, 23, 19, 15, 24, 20, 16, 2, 5, 8, 11, 1, 4, 7, 10, 13, 
      3, 6, 9, 12 ], 
  [ 32, 33, 34, 35, 36, 37, 38, 39, 27, 28, 29, 30, 31, 17, 26, 22, 18, 14, 
      23, 19, 15, 24, 20, 16, 25, 21, 4, 7, 10, 13, 3, 6, 9, 12, 2, 5, 8, 11, 
      1 ], [ 38, 39, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 22, 18, 14, 
      23, 19, 15, 24, 20, 16, 25, 21, 17, 26, 6, 9, 12, 2, 5, 8, 11, 1, 4, 7, 
      10, 13, 3 ], 
  [ 21, 24, 14, 17, 20, 23, 26, 16, 19, 22, 25, 15, 18, 5, 6, 7, 8, 9, 10, 
      11, 12, 13, 1, 2, 3, 4, 27, 36, 32, 28, 37, 33, 29, 38, 34, 30, 39, 35, 
      31 ], [ 23, 26, 16, 19, 22, 25, 15, 18, 21, 24, 14, 17, 20, 11, 12, 13, 
      1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 32, 28, 37, 33, 29, 38, 34, 30, 39, 35, 
      31, 27, 36 ], 
  [ 25, 15, 18, 21, 24, 14, 17, 20, 23, 26, 16, 19, 22, 4, 5, 6, 7, 8, 9, 10, 
      11, 12, 13, 1, 2, 3, 37, 33, 29, 38, 34, 30, 39, 35, 31, 27, 36, 32, 28 
     ], [ 14, 17, 20, 23, 26, 16, 19, 22, 25, 15, 18, 21, 24, 10, 11, 12, 13, 
      1, 2, 3, 4, 5, 6, 7, 8, 9, 29, 38, 34, 30, 39, 35, 31, 27, 36, 32, 28, 
      37, 33 ], 
  [ 16, 19, 22, 25, 15, 18, 21, 24, 14, 17, 20, 23, 26, 3, 4, 5, 6, 7, 8, 9, 
      10, 11, 12, 13, 1, 2, 34, 30, 39, 35, 31, 27, 36, 32, 28, 37, 33, 29, 
      38 ], [ 18, 21, 24, 14, 17, 20, 23, 26, 16, 19, 22, 25, 15, 9, 10, 11, 
      12, 13, 1, 2, 3, 4, 5, 6, 7, 8, 39, 35, 31, 27, 36, 32, 28, 37, 33, 29, 
      38, 34, 30 ], 
  [ 20, 23, 26, 16, 19, 22, 25, 15, 18, 21, 24, 14, 17, 2, 3, 4, 5, 6, 7, 8, 
      9, 10, 11, 12, 13, 1, 31, 27, 36, 32, 28, 37, 33, 29, 38, 34, 30, 39, 
      35 ], [ 22, 25, 15, 18, 21, 24, 14, 17, 20, 23, 26, 16, 19, 8, 9, 10, 
      11, 12, 13, 1, 2, 3, 4, 5, 6, 7, 36, 32, 28, 37, 33, 29, 38, 34, 30, 
      39, 35, 31, 27 ], 
  [ 24, 14, 17, 20, 23, 26, 16, 19, 22, 25, 15, 18, 21, 1, 2, 3, 4, 5, 6, 7, 
      8, 9, 10, 11, 12, 13, 28, 37, 33, 29, 38, 34, 30, 39, 35, 31, 27, 36, 
      32 ], 
  [ 26, 16, 19, 22, 25, 15, 18, 21, 24, 14, 17, 20, 23, 7, 8, 9, 10, 11, 12, 
      13, 1, 2, 3, 4, 5, 6, 33, 29, 38, 34, 30, 39, 35, 31, 27, 36, 32, 28, 
      37 ], [ 15, 18, 21, 24, 14, 17, 20, 23, 26, 16, 19, 22, 25, 13, 1, 2, 
      3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 38, 34, 30, 39, 35, 31, 27, 36, 32, 
      28, 37, 33, 29 ], 
  [ 17, 20, 23, 26, 16, 19, 22, 25, 15, 18, 21, 24, 14, 6, 7, 8, 9, 10, 11, 
      12, 13, 1, 2, 3, 4, 5, 30, 39, 35, 31, 27, 36, 32, 28, 37, 33, 29, 38, 
      34 ], [ 19, 22, 25, 15, 18, 21, 24, 14, 17, 20, 23, 26, 16, 12, 13, 1, 
      2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 35, 31, 27, 36, 32, 28, 37, 33, 29, 38, 
      34, 30, 39 ] ]);
QUANDLES[39].implemented := 3;
QUANDLES[39].rack[3] := rec( size := 39, matrix :=
[ [ 1, 4, 7, 10, 13, 3, 6, 9, 12, 2, 5, 8, 11, 36, 37, 38, 39, 27, 28, 29, 
      30, 31, 32, 33, 34, 35, 16, 25, 21, 17, 26, 22, 18, 14, 23, 19, 15, 24, 
      20 ], [ 12, 2, 5, 8, 11, 1, 4, 7, 10, 13, 3, 6, 9, 30, 31, 32, 33, 34, 
      35, 36, 37, 38, 39, 27, 28, 29, 24, 20, 16, 25, 21, 17, 26, 22, 18, 14, 
      23, 19, 15 ], 
  [ 10, 13, 3, 6, 9, 12, 2, 5, 8, 11, 1, 4, 7, 37, 38, 39, 27, 28, 29, 30, 
      31, 32, 33, 34, 35, 36, 19, 15, 24, 20, 16, 25, 21, 17, 26, 22, 18, 14, 
      23 ], [ 8, 11, 1, 4, 7, 10, 13, 3, 6, 9, 12, 2, 5, 31, 32, 33, 34, 35, 
      36, 37, 38, 39, 27, 28, 29, 30, 14, 23, 19, 15, 24, 20, 16, 25, 21, 17, 
      26, 22, 18 ], 
  [ 6, 9, 12, 2, 5, 8, 11, 1, 4, 7, 10, 13, 3, 38, 39, 27, 28, 29, 30, 31, 
      32, 33, 34, 35, 36, 37, 22, 18, 14, 23, 19, 15, 24, 20, 16, 25, 21, 17, 
      26 ], [ 4, 7, 10, 13, 3, 6, 9, 12, 2, 5, 8, 11, 1, 32, 33, 34, 35, 36, 
      37, 38, 39, 27, 28, 29, 30, 31, 17, 26, 22, 18, 14, 23, 19, 15, 24, 20, 
      16, 25, 21 ], 
  [ 2, 5, 8, 11, 1, 4, 7, 10, 13, 3, 6, 9, 12, 39, 27, 28, 29, 30, 31, 32, 
      33, 34, 35, 36, 37, 38, 25, 21, 17, 26, 22, 18, 14, 23, 19, 15, 24, 20, 
      16 ], [ 13, 3, 6, 9, 12, 2, 5, 8, 11, 1, 4, 7, 10, 33, 34, 35, 36, 37, 
      38, 39, 27, 28, 29, 30, 31, 32, 20, 16, 25, 21, 17, 26, 22, 18, 14, 23, 
      19, 15, 24 ], 
  [ 11, 1, 4, 7, 10, 13, 3, 6, 9, 12, 2, 5, 8, 27, 28, 29, 30, 31, 32, 33, 
      34, 35, 36, 37, 38, 39, 15, 24, 20, 16, 25, 21, 17, 26, 22, 18, 14, 23, 
      19 ], [ 9, 12, 2, 5, 8, 11, 1, 4, 7, 10, 13, 3, 6, 34, 35, 36, 37, 38, 
      39, 27, 28, 29, 30, 31, 32, 33, 23, 19, 15, 24, 20, 16, 25, 21, 17, 26, 
      22, 18, 14 ], 
  [ 7, 10, 13, 3, 6, 9, 12, 2, 5, 8, 11, 1, 4, 28, 29, 30, 31, 32, 33, 34, 
      35, 36, 37, 38, 39, 27, 18, 14, 23, 19, 15, 24, 20, 16, 25, 21, 17, 26, 
      22 ], [ 5, 8, 11, 1, 4, 7, 10, 13, 3, 6, 9, 12, 2, 35, 36, 37, 38, 39, 
      27, 28, 29, 30, 31, 32, 33, 34, 26, 22, 18, 14, 23, 19, 15, 24, 20, 16, 
      25, 21, 17 ], 
  [ 3, 6, 9, 12, 2, 5, 8, 11, 1, 4, 7, 10, 13, 29, 30, 31, 32, 33, 34, 35, 
      36, 37, 38, 39, 27, 28, 21, 17, 26, 22, 18, 14, 23, 19, 15, 24, 20, 16, 
      25 ], [ 29, 38, 34, 30, 39, 35, 31, 27, 36, 32, 28, 37, 33, 14, 17, 20, 
      23, 26, 16, 19, 22, 25, 15, 18, 21, 24, 10, 11, 12, 13, 1, 2, 3, 4, 5, 
      6, 7, 8, 9 ], 
  [ 37, 33, 29, 38, 34, 30, 39, 35, 31, 27, 36, 32, 28, 25, 15, 18, 21, 24, 
      14, 17, 20, 23, 26, 16, 19, 22, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 
      3 ], [ 32, 28, 37, 33, 29, 38, 34, 30, 39, 35, 31, 27, 36, 23, 26, 16, 
      19, 22, 25, 15, 18, 21, 24, 14, 17, 20, 11, 12, 13, 1, 2, 3, 4, 5, 6, 
      7, 8, 9, 10 ], 
  [ 27, 36, 32, 28, 37, 33, 29, 38, 34, 30, 39, 35, 31, 21, 24, 14, 17, 20, 
      23, 26, 16, 19, 22, 25, 15, 18, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 
      4 ], [ 35, 31, 27, 36, 32, 28, 37, 33, 29, 38, 34, 30, 39, 19, 22, 25, 
      15, 18, 21, 24, 14, 17, 20, 23, 26, 16, 12, 13, 1, 2, 3, 4, 5, 6, 7, 8, 
      9, 10, 11 ], 
  [ 30, 39, 35, 31, 27, 36, 32, 28, 37, 33, 29, 38, 34, 17, 20, 23, 26, 16, 
      19, 22, 25, 15, 18, 21, 24, 14, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4, 
      5 ], [ 38, 34, 30, 39, 35, 31, 27, 36, 32, 28, 37, 33, 29, 15, 18, 21, 
      24, 14, 17, 20, 23, 26, 16, 19, 22, 25, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 
      10, 11, 12 ], 
  [ 33, 29, 38, 34, 30, 39, 35, 31, 27, 36, 32, 28, 37, 26, 16, 19, 22, 25, 
      15, 18, 21, 24, 14, 17, 20, 23, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4, 5, 
      6 ], [ 28, 37, 33, 29, 38, 34, 30, 39, 35, 31, 27, 36, 32, 24, 14, 17, 
      20, 23, 26, 16, 19, 22, 25, 15, 18, 21, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 
      11, 12, 13 ], 
  [ 36, 32, 28, 37, 33, 29, 38, 34, 30, 39, 35, 31, 27, 22, 25, 15, 18, 21, 
      24, 14, 17, 20, 23, 26, 16, 19, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4, 5, 6, 
      7 ], [ 31, 27, 36, 32, 28, 37, 33, 29, 38, 34, 30, 39, 35, 20, 23, 26, 
      16, 19, 22, 25, 15, 18, 21, 24, 14, 17, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 
      12, 13, 1 ], 
  [ 39, 35, 31, 27, 36, 32, 28, 37, 33, 29, 38, 34, 30, 18, 21, 24, 14, 17, 
      20, 23, 26, 16, 19, 22, 25, 15, 9, 10, 11, 12, 13, 1, 2, 3, 4, 5, 6, 7, 
      8 ], [ 34, 30, 39, 35, 31, 27, 36, 32, 28, 37, 33, 29, 38, 16, 19, 22, 
      25, 15, 18, 21, 24, 14, 17, 20, 23, 26, 3, 4, 5, 6, 7, 8, 9, 10, 11, 
      12, 13, 1, 2 ], 
  [ 23, 24, 25, 26, 14, 15, 16, 17, 18, 19, 20, 21, 22, 3, 12, 8, 4, 13, 9, 
      5, 1, 10, 6, 2, 11, 7, 27, 30, 33, 36, 39, 29, 32, 35, 38, 28, 31, 34, 
      37 ], [ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 14, 15, 16, 11, 7, 3, 
      12, 8, 4, 13, 9, 5, 1, 10, 6, 2, 38, 28, 31, 34, 37, 27, 30, 33, 36, 
      39, 29, 32, 35 ], 
  [ 24, 25, 26, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 6, 2, 11, 7, 3, 12, 
      8, 4, 13, 9, 5, 1, 10, 36, 39, 29, 32, 35, 38, 28, 31, 34, 37, 27, 30, 
      33 ], [ 18, 19, 20, 21, 22, 23, 24, 25, 26, 14, 15, 16, 17, 1, 10, 6, 
      2, 11, 7, 3, 12, 8, 4, 13, 9, 5, 34, 37, 27, 30, 33, 36, 39, 29, 32, 
      35, 38, 28, 31 ], 
  [ 25, 26, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 9, 5, 1, 10, 6, 2, 
      11, 7, 3, 12, 8, 4, 13, 32, 35, 38, 28, 31, 34, 37, 27, 30, 33, 36, 39, 
      29 ], [ 19, 20, 21, 22, 23, 24, 25, 26, 14, 15, 16, 17, 18, 4, 13, 9, 
      5, 1, 10, 6, 2, 11, 7, 3, 12, 8, 30, 33, 36, 39, 29, 32, 35, 38, 28, 
      31, 34, 37, 27 ], 
  [ 26, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 12, 8, 4, 13, 9, 5, 
      1, 10, 6, 2, 11, 7, 3, 28, 31, 34, 37, 27, 30, 33, 36, 39, 29, 32, 35, 
      38 ], [ 20, 21, 22, 23, 24, 25, 26, 14, 15, 16, 17, 18, 19, 7, 3, 12, 
      8, 4, 13, 9, 5, 1, 10, 6, 2, 11, 39, 29, 32, 35, 38, 28, 31, 34, 37, 
      27, 30, 33, 36 ], 
  [ 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 2, 11, 7, 3, 12, 8, 
      4, 13, 9, 5, 1, 10, 6, 37, 27, 30, 33, 36, 39, 29, 32, 35, 38, 28, 31, 
      34 ], [ 21, 22, 23, 24, 25, 26, 14, 15, 16, 17, 18, 19, 20, 10, 6, 2, 
      11, 7, 3, 12, 8, 4, 13, 9, 5, 1, 35, 38, 28, 31, 34, 37, 27, 30, 33, 
      36, 39, 29, 32 ], 
  [ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 14, 5, 1, 10, 6, 2, 11, 
      7, 3, 12, 8, 4, 13, 9, 33, 36, 39, 29, 32, 35, 38, 28, 31, 34, 37, 27, 
      30 ], [ 22, 23, 24, 25, 26, 14, 15, 16, 17, 18, 19, 20, 21, 13, 9, 5, 
      1, 10, 6, 2, 11, 7, 3, 12, 8, 4, 31, 34, 37, 27, 30, 33, 36, 39, 29, 
      32, 35, 38, 28 ], 
  [ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 14, 15, 8, 4, 13, 9, 5, 1, 
      10, 6, 2, 11, 7, 3, 12, 29, 32, 35, 38, 28, 31, 34, 37, 27, 30, 33, 36, 
      39 ] ]);
QUANDLES[39].implemented := 4;
QUANDLES[39].rack[4] := rec( size := 39, matrix :=
[ [ 1, 9, 4, 12, 7, 2, 10, 5, 13, 8, 3, 11, 6, 29, 37, 32, 27, 35, 30, 38, 
      33, 28, 36, 31, 39, 34, 19, 14, 22, 17, 25, 20, 15, 23, 18, 26, 21, 16, 
      24 ], [ 7, 2, 10, 5, 13, 8, 3, 11, 6, 1, 9, 4, 12, 35, 30, 38, 33, 28, 
      36, 31, 39, 34, 29, 37, 32, 27, 25, 20, 15, 23, 18, 26, 21, 16, 24, 19, 
      14, 22, 17 ], 
  [ 13, 8, 3, 11, 6, 1, 9, 4, 12, 7, 2, 10, 5, 28, 36, 31, 39, 34, 29, 37, 
      32, 27, 35, 30, 38, 33, 18, 26, 21, 16, 24, 19, 14, 22, 17, 25, 20, 15, 
      23 ], [ 6, 1, 9, 4, 12, 7, 2, 10, 5, 13, 8, 3, 11, 34, 29, 37, 32, 27, 
      35, 30, 38, 33, 28, 36, 31, 39, 24, 19, 14, 22, 17, 25, 20, 15, 23, 18, 
      26, 21, 16 ], 
  [ 12, 7, 2, 10, 5, 13, 8, 3, 11, 6, 1, 9, 4, 27, 35, 30, 38, 33, 28, 36, 
      31, 39, 34, 29, 37, 32, 17, 25, 20, 15, 23, 18, 26, 21, 16, 24, 19, 14, 
      22 ], [ 5, 13, 8, 3, 11, 6, 1, 9, 4, 12, 7, 2, 10, 33, 28, 36, 31, 39, 
      34, 29, 37, 32, 27, 35, 30, 38, 23, 18, 26, 21, 16, 24, 19, 14, 22, 17, 
      25, 20, 15 ], 
  [ 11, 6, 1, 9, 4, 12, 7, 2, 10, 5, 13, 8, 3, 39, 34, 29, 37, 32, 27, 35, 
      30, 38, 33, 28, 36, 31, 16, 24, 19, 14, 22, 17, 25, 20, 15, 23, 18, 26, 
      21 ], [ 4, 12, 7, 2, 10, 5, 13, 8, 3, 11, 6, 1, 9, 32, 27, 35, 30, 38, 
      33, 28, 36, 31, 39, 34, 29, 37, 22, 17, 25, 20, 15, 23, 18, 26, 21, 16, 
      24, 19, 14 ], 
  [ 10, 5, 13, 8, 3, 11, 6, 1, 9, 4, 12, 7, 2, 38, 33, 28, 36, 31, 39, 34, 
      29, 37, 32, 27, 35, 30, 15, 23, 18, 26, 21, 16, 24, 19, 14, 22, 17, 25, 
      20 ], [ 3, 11, 6, 1, 9, 4, 12, 7, 2, 10, 5, 13, 8, 31, 39, 34, 29, 37, 
      32, 27, 35, 30, 38, 33, 28, 36, 21, 16, 24, 19, 14, 22, 17, 25, 20, 15, 
      23, 18, 26 ], 
  [ 9, 4, 12, 7, 2, 10, 5, 13, 8, 3, 11, 6, 1, 37, 32, 27, 35, 30, 38, 33, 
      28, 36, 31, 39, 34, 29, 14, 22, 17, 25, 20, 15, 23, 18, 26, 21, 16, 24, 
      19 ], [ 2, 10, 5, 13, 8, 3, 11, 6, 1, 9, 4, 12, 7, 30, 38, 33, 28, 36, 
      31, 39, 34, 29, 37, 32, 27, 35, 20, 15, 23, 18, 26, 21, 16, 24, 19, 14, 
      22, 17, 25 ], 
  [ 8, 3, 11, 6, 1, 9, 4, 12, 7, 2, 10, 5, 13, 36, 31, 39, 34, 29, 37, 32, 
      27, 35, 30, 38, 33, 28, 26, 21, 16, 24, 19, 14, 22, 17, 25, 20, 15, 23, 
      18 ], [ 37, 32, 27, 35, 30, 38, 33, 28, 36, 31, 39, 34, 29, 14, 22, 17, 
      25, 20, 15, 23, 18, 26, 21, 16, 24, 19, 4, 12, 7, 2, 10, 5, 13, 8, 3, 
      11, 6, 1, 9 ], 
  [ 30, 38, 33, 28, 36, 31, 39, 34, 29, 37, 32, 27, 35, 20, 15, 23, 18, 26, 
      21, 16, 24, 19, 14, 22, 17, 25, 10, 5, 13, 8, 3, 11, 6, 1, 9, 4, 12, 7, 
      2 ], [ 36, 31, 39, 34, 29, 37, 32, 27, 35, 30, 38, 33, 28, 26, 21, 16, 
      24, 19, 14, 22, 17, 25, 20, 15, 23, 18, 3, 11, 6, 1, 9, 4, 12, 7, 2, 
      10, 5, 13, 8 ], 
  [ 29, 37, 32, 27, 35, 30, 38, 33, 28, 36, 31, 39, 34, 19, 14, 22, 17, 25, 
      20, 15, 23, 18, 26, 21, 16, 24, 9, 4, 12, 7, 2, 10, 5, 13, 8, 3, 11, 6, 
      1 ], [ 35, 30, 38, 33, 28, 36, 31, 39, 34, 29, 37, 32, 27, 25, 20, 15, 
      23, 18, 26, 21, 16, 24, 19, 14, 22, 17, 2, 10, 5, 13, 8, 3, 11, 6, 1, 
      9, 4, 12, 7 ], 
  [ 28, 36, 31, 39, 34, 29, 37, 32, 27, 35, 30, 38, 33, 18, 26, 21, 16, 24, 
      19, 14, 22, 17, 25, 20, 15, 23, 8, 3, 11, 6, 1, 9, 4, 12, 7, 2, 10, 5, 
      13 ], [ 34, 29, 37, 32, 27, 35, 30, 38, 33, 28, 36, 31, 39, 24, 19, 14, 
      22, 17, 25, 20, 15, 23, 18, 26, 21, 16, 1, 9, 4, 12, 7, 2, 10, 5, 13, 
      8, 3, 11, 6 ], 
  [ 27, 35, 30, 38, 33, 28, 36, 31, 39, 34, 29, 37, 32, 17, 25, 20, 15, 23, 
      18, 26, 21, 16, 24, 19, 14, 22, 7, 2, 10, 5, 13, 8, 3, 11, 6, 1, 9, 4, 
      12 ], [ 33, 28, 36, 31, 39, 34, 29, 37, 32, 27, 35, 30, 38, 23, 18, 26, 
      21, 16, 24, 19, 14, 22, 17, 25, 20, 15, 13, 8, 3, 11, 6, 1, 9, 4, 12, 
      7, 2, 10, 5 ], 
  [ 39, 34, 29, 37, 32, 27, 35, 30, 38, 33, 28, 36, 31, 16, 24, 19, 14, 22, 
      17, 25, 20, 15, 23, 18, 26, 21, 6, 1, 9, 4, 12, 7, 2, 10, 5, 13, 8, 3, 
      11 ], [ 32, 27, 35, 30, 38, 33, 28, 36, 31, 39, 34, 29, 37, 22, 17, 25, 
      20, 15, 23, 18, 26, 21, 16, 24, 19, 14, 12, 7, 2, 10, 5, 13, 8, 3, 11, 
      6, 1, 9, 4 ], 
  [ 38, 33, 28, 36, 31, 39, 34, 29, 37, 32, 27, 35, 30, 15, 23, 18, 26, 21, 
      16, 24, 19, 14, 22, 17, 25, 20, 5, 13, 8, 3, 11, 6, 1, 9, 4, 12, 7, 2, 
      10 ], [ 31, 39, 34, 29, 37, 32, 27, 35, 30, 38, 33, 28, 36, 21, 16, 24, 
      19, 14, 22, 17, 25, 20, 15, 23, 18, 26, 11, 6, 1, 9, 4, 12, 7, 2, 10, 
      5, 13, 8, 3 ], 
  [ 22, 17, 25, 20, 15, 23, 18, 26, 21, 16, 24, 19, 14, 12, 7, 2, 10, 5, 13, 
      8, 3, 11, 6, 1, 9, 4, 27, 35, 30, 38, 33, 28, 36, 31, 39, 34, 29, 37, 
      32 ], [ 15, 23, 18, 26, 21, 16, 24, 19, 14, 22, 17, 25, 20, 5, 13, 8, 
      3, 11, 6, 1, 9, 4, 12, 7, 2, 10, 33, 28, 36, 31, 39, 34, 29, 37, 32, 
      27, 35, 30, 38 ], 
  [ 21, 16, 24, 19, 14, 22, 17, 25, 20, 15, 23, 18, 26, 11, 6, 1, 9, 4, 12, 
      7, 2, 10, 5, 13, 8, 3, 39, 34, 29, 37, 32, 27, 35, 30, 38, 33, 28, 36, 
      31 ], [ 14, 22, 17, 25, 20, 15, 23, 18, 26, 21, 16, 24, 19, 4, 12, 7, 
      2, 10, 5, 13, 8, 3, 11, 6, 1, 9, 32, 27, 35, 30, 38, 33, 28, 36, 31, 
      39, 34, 29, 37 ], 
  [ 20, 15, 23, 18, 26, 21, 16, 24, 19, 14, 22, 17, 25, 10, 5, 13, 8, 3, 11, 
      6, 1, 9, 4, 12, 7, 2, 38, 33, 28, 36, 31, 39, 34, 29, 37, 32, 27, 35, 
      30 ], [ 26, 21, 16, 24, 19, 14, 22, 17, 25, 20, 15, 23, 18, 3, 11, 6, 
      1, 9, 4, 12, 7, 2, 10, 5, 13, 8, 31, 39, 34, 29, 37, 32, 27, 35, 30, 
      38, 33, 28, 36 ], 
  [ 19, 14, 22, 17, 25, 20, 15, 23, 18, 26, 21, 16, 24, 9, 4, 12, 7, 2, 10, 
      5, 13, 8, 3, 11, 6, 1, 37, 32, 27, 35, 30, 38, 33, 28, 36, 31, 39, 34, 
      29 ], [ 25, 20, 15, 23, 18, 26, 21, 16, 24, 19, 14, 22, 17, 2, 10, 5, 
      13, 8, 3, 11, 6, 1, 9, 4, 12, 7, 30, 38, 33, 28, 36, 31, 39, 34, 29, 
      37, 32, 27, 35 ], 
  [ 18, 26, 21, 16, 24, 19, 14, 22, 17, 25, 20, 15, 23, 8, 3, 11, 6, 1, 9, 4, 
      12, 7, 2, 10, 5, 13, 36, 31, 39, 34, 29, 37, 32, 27, 35, 30, 38, 33, 28 
     ], [ 24, 19, 14, 22, 17, 25, 20, 15, 23, 18, 26, 21, 16, 1, 9, 4, 12, 7, 
      2, 10, 5, 13, 8, 3, 11, 6, 29, 37, 32, 27, 35, 30, 38, 33, 28, 36, 31, 
      39, 34 ], 
  [ 17, 25, 20, 15, 23, 18, 26, 21, 16, 24, 19, 14, 22, 7, 2, 10, 5, 13, 8, 
      3, 11, 6, 1, 9, 4, 12, 35, 30, 38, 33, 28, 36, 31, 39, 34, 29, 37, 32, 
      27 ], [ 23, 18, 26, 21, 16, 24, 19, 14, 22, 17, 25, 20, 15, 13, 8, 3, 
      11, 6, 1, 9, 4, 12, 7, 2, 10, 5, 28, 36, 31, 39, 34, 29, 37, 32, 27, 
      35, 30, 38, 33 ], 
  [ 16, 24, 19, 14, 22, 17, 25, 20, 15, 23, 18, 26, 21, 6, 1, 9, 4, 12, 7, 2, 
      10, 5, 13, 8, 3, 11, 34, 29, 37, 32, 27, 35, 30, 38, 33, 28, 36, 31, 39 
     ] ]);
QUANDLES[39].implemented := 5;
QUANDLES[39].rack[5] := rec( size := 39, matrix :=
[ [ 1, 6, 11, 3, 8, 13, 5, 10, 2, 7, 12, 4, 9, 28, 33, 38, 30, 35, 27, 32, 
      37, 29, 34, 39, 31, 36, 17, 22, 14, 19, 24, 16, 21, 26, 18, 23, 15, 20, 
      25 ], [ 10, 2, 7, 12, 4, 9, 1, 6, 11, 3, 8, 13, 5, 37, 29, 34, 39, 31, 
      36, 28, 33, 38, 30, 35, 27, 32, 26, 18, 23, 15, 20, 25, 17, 22, 14, 19, 
      24, 16, 21 ], 
  [ 6, 11, 3, 8, 13, 5, 10, 2, 7, 12, 4, 9, 1, 33, 38, 30, 35, 27, 32, 37, 
      29, 34, 39, 31, 36, 28, 22, 14, 19, 24, 16, 21, 26, 18, 23, 15, 20, 25, 
      17 ], [ 2, 7, 12, 4, 9, 1, 6, 11, 3, 8, 13, 5, 10, 29, 34, 39, 31, 36, 
      28, 33, 38, 30, 35, 27, 32, 37, 18, 23, 15, 20, 25, 17, 22, 14, 19, 24, 
      16, 21, 26 ], 
  [ 11, 3, 8, 13, 5, 10, 2, 7, 12, 4, 9, 1, 6, 38, 30, 35, 27, 32, 37, 29, 
      34, 39, 31, 36, 28, 33, 14, 19, 24, 16, 21, 26, 18, 23, 15, 20, 25, 17, 
      22 ], [ 7, 12, 4, 9, 1, 6, 11, 3, 8, 13, 5, 10, 2, 34, 39, 31, 36, 28, 
      33, 38, 30, 35, 27, 32, 37, 29, 23, 15, 20, 25, 17, 22, 14, 19, 24, 16, 
      21, 26, 18 ], 
  [ 3, 8, 13, 5, 10, 2, 7, 12, 4, 9, 1, 6, 11, 30, 35, 27, 32, 37, 29, 34, 
      39, 31, 36, 28, 33, 38, 19, 24, 16, 21, 26, 18, 23, 15, 20, 25, 17, 22, 
      14 ], [ 12, 4, 9, 1, 6, 11, 3, 8, 13, 5, 10, 2, 7, 39, 31, 36, 28, 33, 
      38, 30, 35, 27, 32, 37, 29, 34, 15, 20, 25, 17, 22, 14, 19, 24, 16, 21, 
      26, 18, 23 ], 
  [ 8, 13, 5, 10, 2, 7, 12, 4, 9, 1, 6, 11, 3, 35, 27, 32, 37, 29, 34, 39, 
      31, 36, 28, 33, 38, 30, 24, 16, 21, 26, 18, 23, 15, 20, 25, 17, 22, 14, 
      19 ], [ 4, 9, 1, 6, 11, 3, 8, 13, 5, 10, 2, 7, 12, 31, 36, 28, 33, 38, 
      30, 35, 27, 32, 37, 29, 34, 39, 20, 25, 17, 22, 14, 19, 24, 16, 21, 26, 
      18, 23, 15 ], 
  [ 13, 5, 10, 2, 7, 12, 4, 9, 1, 6, 11, 3, 8, 27, 32, 37, 29, 34, 39, 31, 
      36, 28, 33, 38, 30, 35, 16, 21, 26, 18, 23, 15, 20, 25, 17, 22, 14, 19, 
      24 ], [ 9, 1, 6, 11, 3, 8, 13, 5, 10, 2, 7, 12, 4, 36, 28, 33, 38, 30, 
      35, 27, 32, 37, 29, 34, 39, 31, 25, 17, 22, 14, 19, 24, 16, 21, 26, 18, 
      23, 15, 20 ], 
  [ 5, 10, 2, 7, 12, 4, 9, 1, 6, 11, 3, 8, 13, 32, 37, 29, 34, 39, 31, 36, 
      28, 33, 38, 30, 35, 27, 21, 26, 18, 23, 15, 20, 25, 17, 22, 14, 19, 24, 
      16 ], [ 38, 30, 35, 27, 32, 37, 29, 34, 39, 31, 36, 28, 33, 14, 19, 24, 
      16, 21, 26, 18, 23, 15, 20, 25, 17, 22, 3, 8, 13, 5, 10, 2, 7, 12, 4, 
      9, 1, 6, 11 ], 
  [ 34, 39, 31, 36, 28, 33, 38, 30, 35, 27, 32, 37, 29, 23, 15, 20, 25, 17, 
      22, 14, 19, 24, 16, 21, 26, 18, 12, 4, 9, 1, 6, 11, 3, 8, 13, 5, 10, 2, 
      7 ], [ 30, 35, 27, 32, 37, 29, 34, 39, 31, 36, 28, 33, 38, 19, 24, 16, 
      21, 26, 18, 23, 15, 20, 25, 17, 22, 14, 8, 13, 5, 10, 2, 7, 12, 4, 9, 
      1, 6, 11, 3 ], 
  [ 39, 31, 36, 28, 33, 38, 30, 35, 27, 32, 37, 29, 34, 15, 20, 25, 17, 22, 
      14, 19, 24, 16, 21, 26, 18, 23, 4, 9, 1, 6, 11, 3, 8, 13, 5, 10, 2, 7, 
      12 ], [ 35, 27, 32, 37, 29, 34, 39, 31, 36, 28, 33, 38, 30, 24, 16, 21, 
      26, 18, 23, 15, 20, 25, 17, 22, 14, 19, 13, 5, 10, 2, 7, 12, 4, 9, 1, 
      6, 11, 3, 8 ], 
  [ 31, 36, 28, 33, 38, 30, 35, 27, 32, 37, 29, 34, 39, 20, 25, 17, 22, 14, 
      19, 24, 16, 21, 26, 18, 23, 15, 9, 1, 6, 11, 3, 8, 13, 5, 10, 2, 7, 12, 
      4 ], [ 27, 32, 37, 29, 34, 39, 31, 36, 28, 33, 38, 30, 35, 16, 21, 26, 
      18, 23, 15, 20, 25, 17, 22, 14, 19, 24, 5, 10, 2, 7, 12, 4, 9, 1, 6, 
      11, 3, 8, 13 ], 
  [ 36, 28, 33, 38, 30, 35, 27, 32, 37, 29, 34, 39, 31, 25, 17, 22, 14, 19, 
      24, 16, 21, 26, 18, 23, 15, 20, 1, 6, 11, 3, 8, 13, 5, 10, 2, 7, 12, 4, 
      9 ], [ 32, 37, 29, 34, 39, 31, 36, 28, 33, 38, 30, 35, 27, 21, 26, 18, 
      23, 15, 20, 25, 17, 22, 14, 19, 24, 16, 10, 2, 7, 12, 4, 9, 1, 6, 11, 
      3, 8, 13, 5 ], 
  [ 28, 33, 38, 30, 35, 27, 32, 37, 29, 34, 39, 31, 36, 17, 22, 14, 19, 24, 
      16, 21, 26, 18, 23, 15, 20, 25, 6, 11, 3, 8, 13, 5, 10, 2, 7, 12, 4, 9, 
      1 ], [ 37, 29, 34, 39, 31, 36, 28, 33, 38, 30, 35, 27, 32, 26, 18, 23, 
      15, 20, 25, 17, 22, 14, 19, 24, 16, 21, 2, 7, 12, 4, 9, 1, 6, 11, 3, 8, 
      13, 5, 10 ], 
  [ 33, 38, 30, 35, 27, 32, 37, 29, 34, 39, 31, 36, 28, 22, 14, 19, 24, 16, 
      21, 26, 18, 23, 15, 20, 25, 17, 11, 3, 8, 13, 5, 10, 2, 7, 12, 4, 9, 1, 
      6 ], [ 29, 34, 39, 31, 36, 28, 33, 38, 30, 35, 27, 32, 37, 18, 23, 15, 
      20, 25, 17, 22, 14, 19, 24, 16, 21, 26, 7, 12, 4, 9, 1, 6, 11, 3, 8, 
      13, 5, 10, 2 ], 
  [ 24, 16, 21, 26, 18, 23, 15, 20, 25, 17, 22, 14, 19, 13, 5, 10, 2, 7, 12, 
      4, 9, 1, 6, 11, 3, 8, 27, 32, 37, 29, 34, 39, 31, 36, 28, 33, 38, 30, 
      35 ], 
  [ 20, 25, 17, 22, 14, 19, 24, 16, 21, 26, 18, 23, 15, 9, 1, 6, 11, 3, 8, 
      13, 5, 10, 2, 7, 12, 4, 36, 28, 33, 38, 30, 35, 27, 32, 37, 29, 34, 39, 
      31 ], [ 16, 21, 26, 18, 23, 15, 20, 25, 17, 22, 14, 19, 24, 5, 10, 2, 
      7, 12, 4, 9, 1, 6, 11, 3, 8, 13, 32, 37, 29, 34, 39, 31, 36, 28, 33, 
      38, 30, 35, 27 ], 
  [ 25, 17, 22, 14, 19, 24, 16, 21, 26, 18, 23, 15, 20, 1, 6, 11, 3, 8, 13, 
      5, 10, 2, 7, 12, 4, 9, 28, 33, 38, 30, 35, 27, 32, 37, 29, 34, 39, 31, 
      36 ], [ 21, 26, 18, 23, 15, 20, 25, 17, 22, 14, 19, 24, 16, 10, 2, 7, 
      12, 4, 9, 1, 6, 11, 3, 8, 13, 5, 37, 29, 34, 39, 31, 36, 28, 33, 38, 
      30, 35, 27, 32 ], 
  [ 17, 22, 14, 19, 24, 16, 21, 26, 18, 23, 15, 20, 25, 6, 11, 3, 8, 13, 5, 
      10, 2, 7, 12, 4, 9, 1, 33, 38, 30, 35, 27, 32, 37, 29, 34, 39, 31, 36, 
      28 ], [ 26, 18, 23, 15, 20, 25, 17, 22, 14, 19, 24, 16, 21, 2, 7, 12, 
      4, 9, 1, 6, 11, 3, 8, 13, 5, 10, 29, 34, 39, 31, 36, 28, 33, 38, 30, 
      35, 27, 32, 37 ], 
  [ 22, 14, 19, 24, 16, 21, 26, 18, 23, 15, 20, 25, 17, 11, 3, 8, 13, 5, 10, 
      2, 7, 12, 4, 9, 1, 6, 38, 30, 35, 27, 32, 37, 29, 34, 39, 31, 36, 28, 
      33 ], [ 18, 23, 15, 20, 25, 17, 22, 14, 19, 24, 16, 21, 26, 7, 12, 4, 
      9, 1, 6, 11, 3, 8, 13, 5, 10, 2, 34, 39, 31, 36, 28, 33, 38, 30, 35, 
      27, 32, 37, 29 ], 
  [ 14, 19, 24, 16, 21, 26, 18, 23, 15, 20, 25, 17, 22, 3, 8, 13, 5, 10, 2, 
      7, 12, 4, 9, 1, 6, 11, 30, 35, 27, 32, 37, 29, 34, 39, 31, 36, 28, 33, 
      38 ], [ 23, 15, 20, 25, 17, 22, 14, 19, 24, 16, 21, 26, 18, 12, 4, 9, 
      1, 6, 11, 3, 8, 13, 5, 10, 2, 7, 39, 31, 36, 28, 33, 38, 30, 35, 27, 
      32, 37, 29, 34 ], 
  [ 19, 24, 16, 21, 26, 18, 23, 15, 20, 25, 17, 22, 14, 8, 13, 5, 10, 2, 7, 
      12, 4, 9, 1, 6, 11, 3, 35, 27, 32, 37, 29, 34, 39, 31, 36, 28, 33, 38, 
      30 ], [ 15, 20, 25, 17, 22, 14, 19, 24, 16, 21, 26, 18, 23, 4, 9, 1, 6, 
      11, 3, 8, 13, 5, 10, 2, 7, 12, 31, 36, 28, 33, 38, 30, 35, 27, 32, 37, 
      29, 34, 39 ] ]);
QUANDLES[39].implemented := 6;
QUANDLES[39].rack[6] := rec( size := 39, matrix :=
[ [ 1, 5, 9, 13, 4, 8, 12, 3, 7, 11, 2, 6, 10, 27, 37, 34, 31, 28, 38, 35, 
      32, 29, 39, 36, 33, 30, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 
      18 ], [ 11, 2, 6, 10, 1, 5, 9, 13, 4, 8, 12, 3, 7, 31, 28, 38, 35, 32, 
      29, 39, 36, 33, 30, 27, 37, 34, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 
      19, 18, 17 ], 
  [ 8, 12, 3, 7, 11, 2, 6, 10, 1, 5, 9, 13, 4, 35, 32, 29, 39, 36, 33, 30, 
      27, 37, 34, 31, 28, 38, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 
      16 ], [ 5, 9, 13, 4, 8, 12, 3, 7, 11, 2, 6, 10, 1, 39, 36, 33, 30, 27, 
      37, 34, 31, 28, 38, 35, 32, 29, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 
      17, 16, 15 ], 
  [ 2, 6, 10, 1, 5, 9, 13, 4, 8, 12, 3, 7, 11, 30, 27, 37, 34, 31, 28, 38, 
      35, 32, 29, 39, 36, 33, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 
      14 ], [ 12, 3, 7, 11, 2, 6, 10, 1, 5, 9, 13, 4, 8, 34, 31, 28, 38, 35, 
      32, 29, 39, 36, 33, 30, 27, 37, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 
      15, 14, 26 ], 
  [ 9, 13, 4, 8, 12, 3, 7, 11, 2, 6, 10, 1, 5, 38, 35, 32, 29, 39, 36, 33, 
      30, 27, 37, 34, 31, 28, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 
      25 ], [ 6, 10, 1, 5, 9, 13, 4, 8, 12, 3, 7, 11, 2, 29, 39, 36, 33, 30, 
      27, 37, 34, 31, 28, 38, 35, 32, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 
      26, 25, 24 ], 
  [ 3, 7, 11, 2, 6, 10, 1, 5, 9, 13, 4, 8, 12, 33, 30, 27, 37, 34, 31, 28, 
      38, 35, 32, 29, 39, 36, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 
      23 ], [ 13, 4, 8, 12, 3, 7, 11, 2, 6, 10, 1, 5, 9, 37, 34, 31, 28, 38, 
      35, 32, 29, 39, 36, 33, 30, 27, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 
      24, 23, 22 ], 
  [ 10, 1, 5, 9, 13, 4, 8, 12, 3, 7, 11, 2, 6, 28, 38, 35, 32, 29, 39, 36, 
      33, 30, 27, 37, 34, 31, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 
      21 ], [ 7, 11, 2, 6, 10, 1, 5, 9, 13, 4, 8, 12, 3, 32, 29, 39, 36, 33, 
      30, 27, 37, 34, 31, 28, 38, 35, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 
      22, 21, 20 ], 
  [ 4, 8, 12, 3, 7, 11, 2, 6, 10, 1, 5, 9, 13, 36, 33, 30, 27, 37, 34, 31, 
      28, 38, 35, 32, 29, 39, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 
      19 ], [ 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 14, 18, 22, 
      26, 17, 21, 25, 16, 20, 24, 15, 19, 23, 1, 11, 8, 5, 2, 12, 9, 6, 3, 
      13, 10, 7, 4 ], 
  [ 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 24, 15, 19, 23, 14, 
      18, 22, 26, 17, 21, 25, 16, 20, 5, 2, 12, 9, 6, 3, 13, 10, 7, 4, 1, 11, 
      8 ], [ 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 21, 25, 16, 
      20, 24, 15, 19, 23, 14, 18, 22, 26, 17, 9, 6, 3, 13, 10, 7, 4, 1, 11, 
      8, 5, 2, 12 ], 
  [ 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 18, 22, 26, 17, 21, 
      25, 16, 20, 24, 15, 19, 23, 14, 13, 10, 7, 4, 1, 11, 8, 5, 2, 12, 9, 6, 
      3 ], [ 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 15, 19, 23, 
      14, 18, 22, 26, 17, 21, 25, 16, 20, 24, 4, 1, 11, 8, 5, 2, 12, 9, 6, 3, 
      13, 10, 7 ], 
  [ 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 25, 16, 20, 24, 15, 
      19, 23, 14, 18, 22, 26, 17, 21, 8, 5, 2, 12, 9, 6, 3, 13, 10, 7, 4, 1, 
      11 ], [ 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 22, 26, 17, 
      21, 25, 16, 20, 24, 15, 19, 23, 14, 18, 12, 9, 6, 3, 13, 10, 7, 4, 1, 
      11, 8, 5, 2 ], 
  [ 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 19, 23, 14, 18, 22, 
      26, 17, 21, 25, 16, 20, 24, 15, 3, 13, 10, 7, 4, 1, 11, 8, 5, 2, 12, 9, 
      6 ], [ 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 16, 20, 24, 
      15, 19, 23, 14, 18, 22, 26, 17, 21, 25, 7, 4, 1, 11, 8, 5, 2, 12, 9, 6, 
      3, 13, 10 ], 
  [ 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 26, 17, 21, 25, 16, 
      20, 24, 15, 19, 23, 14, 18, 22, 11, 8, 5, 2, 12, 9, 6, 3, 13, 10, 7, 4, 
      1 ], [ 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 23, 14, 18, 
      22, 26, 17, 21, 25, 16, 20, 24, 15, 19, 2, 12, 9, 6, 3, 13, 10, 7, 4, 
      1, 11, 8, 5 ], 
  [ 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 20, 24, 15, 19, 23, 
      14, 18, 22, 26, 17, 21, 25, 16, 6, 3, 13, 10, 7, 4, 1, 11, 8, 5, 2, 12, 
      9 ], [ 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 17, 21, 25, 
      16, 20, 24, 15, 19, 23, 14, 18, 22, 26, 10, 7, 4, 1, 11, 8, 5, 2, 12, 
      9, 6, 3, 13 ], 
  [ 14, 24, 21, 18, 15, 25, 22, 19, 16, 26, 23, 20, 17, 4, 3, 2, 1, 13, 12, 
      11, 10, 9, 8, 7, 6, 5, 27, 31, 35, 39, 30, 34, 38, 29, 33, 37, 28, 32, 
      36 ], 
  [ 18, 15, 25, 22, 19, 16, 26, 23, 20, 17, 14, 24, 21, 3, 2, 1, 13, 12, 11, 
      10, 9, 8, 7, 6, 5, 4, 37, 28, 32, 36, 27, 31, 35, 39, 30, 34, 38, 29, 
      33 ], [ 22, 19, 16, 26, 23, 20, 17, 14, 24, 21, 18, 15, 25, 2, 1, 13, 
      12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 34, 38, 29, 33, 37, 28, 32, 36, 27, 
      31, 35, 39, 30 ], 
  [ 26, 23, 20, 17, 14, 24, 21, 18, 15, 25, 22, 19, 16, 1, 13, 12, 11, 10, 9, 
      8, 7, 6, 5, 4, 3, 2, 31, 35, 39, 30, 34, 38, 29, 33, 37, 28, 32, 36, 27 
     ], [ 17, 14, 24, 21, 18, 15, 25, 22, 19, 16, 26, 23, 20, 13, 12, 11, 10, 
      9, 8, 7, 6, 5, 4, 3, 2, 1, 28, 32, 36, 27, 31, 35, 39, 30, 34, 38, 29, 
      33, 37 ], 
  [ 21, 18, 15, 25, 22, 19, 16, 26, 23, 20, 17, 14, 24, 12, 11, 10, 9, 8, 7, 
      6, 5, 4, 3, 2, 1, 13, 38, 29, 33, 37, 28, 32, 36, 27, 31, 35, 39, 30, 
      34 ], [ 25, 22, 19, 16, 26, 23, 20, 17, 14, 24, 21, 18, 15, 11, 10, 9, 
      8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 35, 39, 30, 34, 38, 29, 33, 37, 28, 32, 
      36, 27, 31 ], 
  [ 16, 26, 23, 20, 17, 14, 24, 21, 18, 15, 25, 22, 19, 10, 9, 8, 7, 6, 5, 4, 
      3, 2, 1, 13, 12, 11, 32, 36, 27, 31, 35, 39, 30, 34, 38, 29, 33, 37, 28 
     ], [ 20, 17, 14, 24, 21, 18, 15, 25, 22, 19, 16, 26, 23, 9, 8, 7, 6, 5, 
      4, 3, 2, 1, 13, 12, 11, 10, 29, 33, 37, 28, 32, 36, 27, 31, 35, 39, 30, 
      34, 38 ], 
  [ 24, 21, 18, 15, 25, 22, 19, 16, 26, 23, 20, 17, 14, 8, 7, 6, 5, 4, 3, 2, 
      1, 13, 12, 11, 10, 9, 39, 30, 34, 38, 29, 33, 37, 28, 32, 36, 27, 31, 
      35 ], [ 15, 25, 22, 19, 16, 26, 23, 20, 17, 14, 24, 21, 18, 7, 6, 5, 4, 
      3, 2, 1, 13, 12, 11, 10, 9, 8, 36, 27, 31, 35, 39, 30, 34, 38, 29, 33, 
      37, 28, 32 ], 
  [ 19, 16, 26, 23, 20, 17, 14, 24, 21, 18, 15, 25, 22, 6, 5, 4, 3, 2, 1, 13, 
      12, 11, 10, 9, 8, 7, 33, 37, 28, 32, 36, 27, 31, 35, 39, 30, 34, 38, 29 
     ], [ 23, 20, 17, 14, 24, 21, 18, 15, 25, 22, 19, 16, 26, 5, 4, 3, 2, 1, 
      13, 12, 11, 10, 9, 8, 7, 6, 30, 34, 38, 29, 33, 37, 28, 32, 36, 27, 31, 
      35, 39 ] ]);
QUANDLES[39].implemented := 7;
QUANDLES[39].rack[7] := rec( size := 39, matrix :=
[ [ 1, 11, 8, 5, 2, 12, 9, 6, 3, 13, 10, 7, 4, 30, 29, 28, 27, 39, 38, 37, 
      36, 35, 34, 33, 32, 31, 14, 18, 22, 26, 17, 21, 25, 16, 20, 24, 15, 19, 
      23 ], [ 5, 2, 12, 9, 6, 3, 13, 10, 7, 4, 1, 11, 8, 29, 28, 27, 39, 38, 
      37, 36, 35, 34, 33, 32, 31, 30, 24, 15, 19, 23, 14, 18, 22, 26, 17, 21, 
      25, 16, 20 ], 
  [ 9, 6, 3, 13, 10, 7, 4, 1, 11, 8, 5, 2, 12, 28, 27, 39, 38, 37, 36, 35, 
      34, 33, 32, 31, 30, 29, 21, 25, 16, 20, 24, 15, 19, 23, 14, 18, 22, 26, 
      17 ], [ 13, 10, 7, 4, 1, 11, 8, 5, 2, 12, 9, 6, 3, 27, 39, 38, 37, 36, 
      35, 34, 33, 32, 31, 30, 29, 28, 18, 22, 26, 17, 21, 25, 16, 20, 24, 15, 
      19, 23, 14 ], 
  [ 4, 1, 11, 8, 5, 2, 12, 9, 6, 3, 13, 10, 7, 39, 38, 37, 36, 35, 34, 33, 
      32, 31, 30, 29, 28, 27, 15, 19, 23, 14, 18, 22, 26, 17, 21, 25, 16, 20, 
      24 ], [ 8, 5, 2, 12, 9, 6, 3, 13, 10, 7, 4, 1, 11, 38, 37, 36, 35, 34, 
      33, 32, 31, 30, 29, 28, 27, 39, 25, 16, 20, 24, 15, 19, 23, 14, 18, 22, 
      26, 17, 21 ], 
  [ 12, 9, 6, 3, 13, 10, 7, 4, 1, 11, 8, 5, 2, 37, 36, 35, 34, 33, 32, 31, 
      30, 29, 28, 27, 39, 38, 22, 26, 17, 21, 25, 16, 20, 24, 15, 19, 23, 14, 
      18 ], [ 3, 13, 10, 7, 4, 1, 11, 8, 5, 2, 12, 9, 6, 36, 35, 34, 33, 32, 
      31, 30, 29, 28, 27, 39, 38, 37, 19, 23, 14, 18, 22, 26, 17, 21, 25, 16, 
      20, 24, 15 ], 
  [ 7, 4, 1, 11, 8, 5, 2, 12, 9, 6, 3, 13, 10, 35, 34, 33, 32, 31, 30, 29, 
      28, 27, 39, 38, 37, 36, 16, 20, 24, 15, 19, 23, 14, 18, 22, 26, 17, 21, 
      25 ], [ 11, 8, 5, 2, 12, 9, 6, 3, 13, 10, 7, 4, 1, 34, 33, 32, 31, 30, 
      29, 28, 27, 39, 38, 37, 36, 35, 26, 17, 21, 25, 16, 20, 24, 15, 19, 23, 
      14, 18, 22 ], 
  [ 2, 12, 9, 6, 3, 13, 10, 7, 4, 1, 11, 8, 5, 33, 32, 31, 30, 29, 28, 27, 
      39, 38, 37, 36, 35, 34, 23, 14, 18, 22, 26, 17, 21, 25, 16, 20, 24, 15, 
      19 ], [ 6, 3, 13, 10, 7, 4, 1, 11, 8, 5, 2, 12, 9, 32, 31, 30, 29, 28, 
      27, 39, 38, 37, 36, 35, 34, 33, 20, 24, 15, 19, 23, 14, 18, 22, 26, 17, 
      21, 25, 16 ], 
  [ 10, 7, 4, 1, 11, 8, 5, 2, 12, 9, 6, 3, 13, 31, 30, 29, 28, 27, 39, 38, 
      37, 36, 35, 34, 33, 32, 17, 21, 25, 16, 20, 24, 15, 19, 23, 14, 18, 22, 
      26 ], [ 27, 31, 35, 39, 30, 34, 38, 29, 33, 37, 28, 32, 36, 14, 24, 21, 
      18, 15, 25, 22, 19, 16, 26, 23, 20, 17, 4, 3, 2, 1, 13, 12, 11, 10, 9, 
      8, 7, 6, 5 ], 
  [ 37, 28, 32, 36, 27, 31, 35, 39, 30, 34, 38, 29, 33, 18, 15, 25, 22, 19, 
      16, 26, 23, 20, 17, 14, 24, 21, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 
      4 ], [ 34, 38, 29, 33, 37, 28, 32, 36, 27, 31, 35, 39, 30, 22, 19, 16, 
      26, 23, 20, 17, 14, 24, 21, 18, 15, 25, 2, 1, 13, 12, 11, 10, 9, 8, 7, 
      6, 5, 4, 3 ], 
  [ 31, 35, 39, 30, 34, 38, 29, 33, 37, 28, 32, 36, 27, 26, 23, 20, 17, 14, 
      24, 21, 18, 15, 25, 22, 19, 16, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 
      2 ], [ 28, 32, 36, 27, 31, 35, 39, 30, 34, 38, 29, 33, 37, 17, 14, 24, 
      21, 18, 15, 25, 22, 19, 16, 26, 23, 20, 13, 12, 11, 10, 9, 8, 7, 6, 5, 
      4, 3, 2, 1 ], 
  [ 38, 29, 33, 37, 28, 32, 36, 27, 31, 35, 39, 30, 34, 21, 18, 15, 25, 22, 
      19, 16, 26, 23, 20, 17, 14, 24, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 
      13 ], [ 35, 39, 30, 34, 38, 29, 33, 37, 28, 32, 36, 27, 31, 25, 22, 19, 
      16, 26, 23, 20, 17, 14, 24, 21, 18, 15, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 
      1, 13, 12 ], 
  [ 32, 36, 27, 31, 35, 39, 30, 34, 38, 29, 33, 37, 28, 16, 26, 23, 20, 17, 
      14, 24, 21, 18, 15, 25, 22, 19, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 
      11 ], [ 29, 33, 37, 28, 32, 36, 27, 31, 35, 39, 30, 34, 38, 20, 17, 14, 
      24, 21, 18, 15, 25, 22, 19, 16, 26, 23, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 
      12, 11, 10 ], 
  [ 39, 30, 34, 38, 29, 33, 37, 28, 32, 36, 27, 31, 35, 24, 21, 18, 15, 25, 
      22, 19, 16, 26, 23, 20, 17, 14, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 
      9 ], [ 36, 27, 31, 35, 39, 30, 34, 38, 29, 33, 37, 28, 32, 15, 25, 22, 
      19, 16, 26, 23, 20, 17, 14, 24, 21, 18, 7, 6, 5, 4, 3, 2, 1, 13, 12, 
      11, 10, 9, 8 ], 
  [ 33, 37, 28, 32, 36, 27, 31, 35, 39, 30, 34, 38, 29, 19, 16, 26, 23, 20, 
      17, 14, 24, 21, 18, 15, 25, 22, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 
      7 ], [ 30, 34, 38, 29, 33, 37, 28, 32, 36, 27, 31, 35, 39, 23, 20, 17, 
      14, 24, 21, 18, 15, 25, 22, 19, 16, 26, 5, 4, 3, 2, 1, 13, 12, 11, 10, 
      9, 8, 7, 6 ], 
  [ 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 1, 5, 9, 13, 4, 8, 
      12, 3, 7, 11, 2, 6, 10, 27, 37, 34, 31, 28, 38, 35, 32, 29, 39, 36, 33, 
      30 ], [ 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 11, 2, 6, 
      10, 1, 5, 9, 13, 4, 8, 12, 3, 7, 31, 28, 38, 35, 32, 29, 39, 36, 33, 
      30, 27, 37, 34 ], 
  [ 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 8, 12, 3, 7, 11, 2, 
      6, 10, 1, 5, 9, 13, 4, 35, 32, 29, 39, 36, 33, 30, 27, 37, 34, 31, 28, 
      38 ], [ 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 5, 9, 13, 
      4, 8, 12, 3, 7, 11, 2, 6, 10, 1, 39, 36, 33, 30, 27, 37, 34, 31, 28, 
      38, 35, 32, 29 ], 
  [ 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 2, 6, 10, 1, 5, 9, 
      13, 4, 8, 12, 3, 7, 11, 30, 27, 37, 34, 31, 28, 38, 35, 32, 29, 39, 36, 
      33 ], [ 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 12, 3, 7, 
      11, 2, 6, 10, 1, 5, 9, 13, 4, 8, 34, 31, 28, 38, 35, 32, 29, 39, 36, 
      33, 30, 27, 37 ], 
  [ 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 9, 13, 4, 8, 12, 3, 
      7, 11, 2, 6, 10, 1, 5, 38, 35, 32, 29, 39, 36, 33, 30, 27, 37, 34, 31, 
      28 ], [ 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 6, 10, 1, 
      5, 9, 13, 4, 8, 12, 3, 7, 11, 2, 29, 39, 36, 33, 30, 27, 37, 34, 31, 
      28, 38, 35, 32 ], 
  [ 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 3, 7, 11, 2, 6, 10, 
      1, 5, 9, 13, 4, 8, 12, 33, 30, 27, 37, 34, 31, 28, 38, 35, 32, 29, 39, 
      36 ], [ 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 13, 4, 8, 
      12, 3, 7, 11, 2, 6, 10, 1, 5, 9, 37, 34, 31, 28, 38, 35, 32, 29, 39, 
      36, 33, 30, 27 ], 
  [ 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 10, 1, 5, 9, 13, 4, 
      8, 12, 3, 7, 11, 2, 6, 28, 38, 35, 32, 29, 39, 36, 33, 30, 27, 37, 34, 
      31 ], [ 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 7, 11, 2, 
      6, 10, 1, 5, 9, 13, 4, 8, 12, 3, 32, 29, 39, 36, 33, 30, 27, 37, 34, 
      31, 28, 38, 35 ], 
  [ 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 4, 8, 12, 3, 7, 11, 
      2, 6, 10, 1, 5, 9, 13, 36, 33, 30, 27, 37, 34, 31, 28, 38, 35, 32, 29, 
      39 ] ]);
QUANDLES[39].implemented := 8;
QUANDLES[39].rack[8] := rec( size := 39, matrix :=
[ [ 1, 12, 10, 8, 6, 4, 2, 13, 11, 9, 7, 5, 3, 37, 35, 33, 31, 29, 27, 38, 
      36, 34, 32, 30, 28, 39, 20, 18, 16, 14, 25, 23, 21, 19, 17, 15, 26, 24, 
      22 ], [ 4, 2, 13, 11, 9, 7, 5, 3, 1, 12, 10, 8, 6, 27, 38, 36, 34, 32, 
      30, 28, 39, 37, 35, 33, 31, 29, 23, 21, 19, 17, 15, 26, 24, 22, 20, 18, 
      16, 14, 25 ], 
  [ 7, 5, 3, 1, 12, 10, 8, 6, 4, 2, 13, 11, 9, 30, 28, 39, 37, 35, 33, 31, 
      29, 27, 38, 36, 34, 32, 26, 24, 22, 20, 18, 16, 14, 25, 23, 21, 19, 17, 
      15 ], [ 10, 8, 6, 4, 2, 13, 11, 9, 7, 5, 3, 1, 12, 33, 31, 29, 27, 38, 
      36, 34, 32, 30, 28, 39, 37, 35, 16, 14, 25, 23, 21, 19, 17, 15, 26, 24, 
      22, 20, 18 ], 
  [ 13, 11, 9, 7, 5, 3, 1, 12, 10, 8, 6, 4, 2, 36, 34, 32, 30, 28, 39, 37, 
      35, 33, 31, 29, 27, 38, 19, 17, 15, 26, 24, 22, 20, 18, 16, 14, 25, 23, 
      21 ], [ 3, 1, 12, 10, 8, 6, 4, 2, 13, 11, 9, 7, 5, 39, 37, 35, 33, 31, 
      29, 27, 38, 36, 34, 32, 30, 28, 22, 20, 18, 16, 14, 25, 23, 21, 19, 17, 
      15, 26, 24 ], 
  [ 6, 4, 2, 13, 11, 9, 7, 5, 3, 1, 12, 10, 8, 29, 27, 38, 36, 34, 32, 30, 
      28, 39, 37, 35, 33, 31, 25, 23, 21, 19, 17, 15, 26, 24, 22, 20, 18, 16, 
      14 ], [ 9, 7, 5, 3, 1, 12, 10, 8, 6, 4, 2, 13, 11, 32, 30, 28, 39, 37, 
      35, 33, 31, 29, 27, 38, 36, 34, 15, 26, 24, 22, 20, 18, 16, 14, 25, 23, 
      21, 19, 17 ], 
  [ 12, 10, 8, 6, 4, 2, 13, 11, 9, 7, 5, 3, 1, 35, 33, 31, 29, 27, 38, 36, 
      34, 32, 30, 28, 39, 37, 18, 16, 14, 25, 23, 21, 19, 17, 15, 26, 24, 22, 
      20 ], [ 2, 13, 11, 9, 7, 5, 3, 1, 12, 10, 8, 6, 4, 38, 36, 34, 32, 30, 
      28, 39, 37, 35, 33, 31, 29, 27, 21, 19, 17, 15, 26, 24, 22, 20, 18, 16, 
      14, 25, 23 ], 
  [ 5, 3, 1, 12, 10, 8, 6, 4, 2, 13, 11, 9, 7, 28, 39, 37, 35, 33, 31, 29, 
      27, 38, 36, 34, 32, 30, 24, 22, 20, 18, 16, 14, 25, 23, 21, 19, 17, 15, 
      26 ], [ 8, 6, 4, 2, 13, 11, 9, 7, 5, 3, 1, 12, 10, 31, 29, 27, 38, 36, 
      34, 32, 30, 28, 39, 37, 35, 33, 14, 25, 23, 21, 19, 17, 15, 26, 24, 22, 
      20, 18, 16 ], 
  [ 11, 9, 7, 5, 3, 1, 12, 10, 8, 6, 4, 2, 13, 34, 32, 30, 28, 39, 37, 35, 
      33, 31, 29, 27, 38, 36, 17, 15, 26, 24, 22, 20, 18, 16, 14, 25, 23, 21, 
      19 ], [ 31, 29, 27, 38, 36, 34, 32, 30, 28, 39, 37, 35, 33, 14, 25, 23, 
      21, 19, 17, 15, 26, 24, 22, 20, 18, 16, 10, 8, 6, 4, 2, 13, 11, 9, 7, 
      5, 3, 1, 12 ], 
  [ 34, 32, 30, 28, 39, 37, 35, 33, 31, 29, 27, 38, 36, 17, 15, 26, 24, 22, 
      20, 18, 16, 14, 25, 23, 21, 19, 13, 11, 9, 7, 5, 3, 1, 12, 10, 8, 6, 4, 
      2 ], [ 37, 35, 33, 31, 29, 27, 38, 36, 34, 32, 30, 28, 39, 20, 18, 16, 
      14, 25, 23, 21, 19, 17, 15, 26, 24, 22, 3, 1, 12, 10, 8, 6, 4, 2, 13, 
      11, 9, 7, 5 ], 
  [ 27, 38, 36, 34, 32, 30, 28, 39, 37, 35, 33, 31, 29, 23, 21, 19, 17, 15, 
      26, 24, 22, 20, 18, 16, 14, 25, 6, 4, 2, 13, 11, 9, 7, 5, 3, 1, 12, 10, 
      8 ], [ 30, 28, 39, 37, 35, 33, 31, 29, 27, 38, 36, 34, 32, 26, 24, 22, 
      20, 18, 16, 14, 25, 23, 21, 19, 17, 15, 9, 7, 5, 3, 1, 12, 10, 8, 6, 4, 
      2, 13, 11 ], 
  [ 33, 31, 29, 27, 38, 36, 34, 32, 30, 28, 39, 37, 35, 16, 14, 25, 23, 21, 
      19, 17, 15, 26, 24, 22, 20, 18, 12, 10, 8, 6, 4, 2, 13, 11, 9, 7, 5, 3, 
      1 ], [ 36, 34, 32, 30, 28, 39, 37, 35, 33, 31, 29, 27, 38, 19, 17, 15, 
      26, 24, 22, 20, 18, 16, 14, 25, 23, 21, 2, 13, 11, 9, 7, 5, 3, 1, 12, 
      10, 8, 6, 4 ], 
  [ 39, 37, 35, 33, 31, 29, 27, 38, 36, 34, 32, 30, 28, 22, 20, 18, 16, 14, 
      25, 23, 21, 19, 17, 15, 26, 24, 5, 3, 1, 12, 10, 8, 6, 4, 2, 13, 11, 9, 
      7 ], [ 29, 27, 38, 36, 34, 32, 30, 28, 39, 37, 35, 33, 31, 25, 23, 21, 
      19, 17, 15, 26, 24, 22, 20, 18, 16, 14, 8, 6, 4, 2, 13, 11, 9, 7, 5, 3, 
      1, 12, 10 ], 
  [ 32, 30, 28, 39, 37, 35, 33, 31, 29, 27, 38, 36, 34, 15, 26, 24, 22, 20, 
      18, 16, 14, 25, 23, 21, 19, 17, 11, 9, 7, 5, 3, 1, 12, 10, 8, 6, 4, 2, 
      13 ], [ 35, 33, 31, 29, 27, 38, 36, 34, 32, 30, 28, 39, 37, 18, 16, 14, 
      25, 23, 21, 19, 17, 15, 26, 24, 22, 20, 1, 12, 10, 8, 6, 4, 2, 13, 11, 
      9, 7, 5, 3 ], 
  [ 38, 36, 34, 32, 30, 28, 39, 37, 35, 33, 31, 29, 27, 21, 19, 17, 15, 26, 
      24, 22, 20, 18, 16, 14, 25, 23, 4, 2, 13, 11, 9, 7, 5, 3, 1, 12, 10, 8, 
      6 ], [ 28, 39, 37, 35, 33, 31, 29, 27, 38, 36, 34, 32, 30, 24, 22, 20, 
      18, 16, 14, 25, 23, 21, 19, 17, 15, 26, 7, 5, 3, 1, 12, 10, 8, 6, 4, 2, 
      13, 11, 9 ], 
  [ 21, 19, 17, 15, 26, 24, 22, 20, 18, 16, 14, 25, 23, 4, 2, 13, 11, 9, 7, 
      5, 3, 1, 12, 10, 8, 6, 27, 38, 36, 34, 32, 30, 28, 39, 37, 35, 33, 31, 
      29 ], [ 24, 22, 20, 18, 16, 14, 25, 23, 21, 19, 17, 15, 26, 7, 5, 3, 1, 
      12, 10, 8, 6, 4, 2, 13, 11, 9, 30, 28, 39, 37, 35, 33, 31, 29, 27, 38, 
      36, 34, 32 ], 
  [ 14, 25, 23, 21, 19, 17, 15, 26, 24, 22, 20, 18, 16, 10, 8, 6, 4, 2, 13, 
      11, 9, 7, 5, 3, 1, 12, 33, 31, 29, 27, 38, 36, 34, 32, 30, 28, 39, 37, 
      35 ], [ 17, 15, 26, 24, 22, 20, 18, 16, 14, 25, 23, 21, 19, 13, 11, 9, 
      7, 5, 3, 1, 12, 10, 8, 6, 4, 2, 36, 34, 32, 30, 28, 39, 37, 35, 33, 31, 
      29, 27, 38 ], 
  [ 20, 18, 16, 14, 25, 23, 21, 19, 17, 15, 26, 24, 22, 3, 1, 12, 10, 8, 6, 
      4, 2, 13, 11, 9, 7, 5, 39, 37, 35, 33, 31, 29, 27, 38, 36, 34, 32, 30, 
      28 ], 
  [ 23, 21, 19, 17, 15, 26, 24, 22, 20, 18, 16, 14, 25, 6, 4, 2, 13, 11, 9, 
      7, 5, 3, 1, 12, 10, 8, 29, 27, 38, 36, 34, 32, 30, 28, 39, 37, 35, 33, 
      31 ], [ 26, 24, 22, 20, 18, 16, 14, 25, 23, 21, 19, 17, 15, 9, 7, 5, 3, 
      1, 12, 10, 8, 6, 4, 2, 13, 11, 32, 30, 28, 39, 37, 35, 33, 31, 29, 27, 
      38, 36, 34 ], 
  [ 16, 14, 25, 23, 21, 19, 17, 15, 26, 24, 22, 20, 18, 12, 10, 8, 6, 4, 2, 
      13, 11, 9, 7, 5, 3, 1, 35, 33, 31, 29, 27, 38, 36, 34, 32, 30, 28, 39, 
      37 ], [ 19, 17, 15, 26, 24, 22, 20, 18, 16, 14, 25, 23, 21, 2, 13, 11, 
      9, 7, 5, 3, 1, 12, 10, 8, 6, 4, 38, 36, 34, 32, 30, 28, 39, 37, 35, 33, 
      31, 29, 27 ], 
  [ 22, 20, 18, 16, 14, 25, 23, 21, 19, 17, 15, 26, 24, 5, 3, 1, 12, 10, 8, 
      6, 4, 2, 13, 11, 9, 7, 28, 39, 37, 35, 33, 31, 29, 27, 38, 36, 34, 32, 
      30 ], [ 25, 23, 21, 19, 17, 15, 26, 24, 22, 20, 18, 16, 14, 8, 6, 4, 2, 
      13, 11, 9, 7, 5, 3, 1, 12, 10, 31, 29, 27, 38, 36, 34, 32, 30, 28, 39, 
      37, 35, 33 ], 
  [ 15, 26, 24, 22, 20, 18, 16, 14, 25, 23, 21, 19, 17, 11, 9, 7, 5, 3, 1, 
      12, 10, 8, 6, 4, 2, 13, 34, 32, 30, 28, 39, 37, 35, 33, 31, 29, 27, 38, 
      36 ], [ 18, 16, 14, 25, 23, 21, 19, 17, 15, 26, 24, 22, 20, 1, 12, 10, 
      8, 6, 4, 2, 13, 11, 9, 7, 5, 3, 37, 35, 33, 31, 29, 27, 38, 36, 34, 32, 
      30, 28, 39 ] ]);
QUANDLES[39].implemented := 9;
QUANDLES[39].rack[9] := rec( size := 39, matrix :=
[ [ 1, 8, 2, 9, 3, 10, 4, 11, 5, 12, 6, 13, 7, 34, 28, 35, 29, 36, 30, 37, 
      31, 38, 32, 39, 33, 27, 14, 21, 15, 22, 16, 23, 17, 24, 18, 25, 19, 26, 
      20 ], [ 8, 2, 9, 3, 10, 4, 11, 5, 12, 6, 13, 7, 1, 28, 35, 29, 36, 30, 
      37, 31, 38, 32, 39, 33, 27, 34, 21, 15, 22, 16, 23, 17, 24, 18, 25, 19, 
      26, 20, 14 ], 
  [ 2, 9, 3, 10, 4, 11, 5, 12, 6, 13, 7, 1, 8, 35, 29, 36, 30, 37, 31, 38, 
      32, 39, 33, 27, 34, 28, 15, 22, 16, 23, 17, 24, 18, 25, 19, 26, 20, 14, 
      21 ], [ 9, 3, 10, 4, 11, 5, 12, 6, 13, 7, 1, 8, 2, 29, 36, 30, 37, 31, 
      38, 32, 39, 33, 27, 34, 28, 35, 22, 16, 23, 17, 24, 18, 25, 19, 26, 20, 
      14, 21, 15 ], 
  [ 3, 10, 4, 11, 5, 12, 6, 13, 7, 1, 8, 2, 9, 36, 30, 37, 31, 38, 32, 39, 
      33, 27, 34, 28, 35, 29, 16, 23, 17, 24, 18, 25, 19, 26, 20, 14, 21, 15, 
      22 ], [ 10, 4, 11, 5, 12, 6, 13, 7, 1, 8, 2, 9, 3, 30, 37, 31, 38, 32, 
      39, 33, 27, 34, 28, 35, 29, 36, 23, 17, 24, 18, 25, 19, 26, 20, 14, 21, 
      15, 22, 16 ], 
  [ 4, 11, 5, 12, 6, 13, 7, 1, 8, 2, 9, 3, 10, 37, 31, 38, 32, 39, 33, 27, 
      34, 28, 35, 29, 36, 30, 17, 24, 18, 25, 19, 26, 20, 14, 21, 15, 22, 16, 
      23 ], [ 11, 5, 12, 6, 13, 7, 1, 8, 2, 9, 3, 10, 4, 31, 38, 32, 39, 33, 
      27, 34, 28, 35, 29, 36, 30, 37, 24, 18, 25, 19, 26, 20, 14, 21, 15, 22, 
      16, 23, 17 ], 
  [ 5, 12, 6, 13, 7, 1, 8, 2, 9, 3, 10, 4, 11, 38, 32, 39, 33, 27, 34, 28, 
      35, 29, 36, 30, 37, 31, 18, 25, 19, 26, 20, 14, 21, 15, 22, 16, 23, 17, 
      24 ], [ 12, 6, 13, 7, 1, 8, 2, 9, 3, 10, 4, 11, 5, 32, 39, 33, 27, 34, 
      28, 35, 29, 36, 30, 37, 31, 38, 25, 19, 26, 20, 14, 21, 15, 22, 16, 23, 
      17, 24, 18 ], 
  [ 6, 13, 7, 1, 8, 2, 9, 3, 10, 4, 11, 5, 12, 39, 33, 27, 34, 28, 35, 29, 
      36, 30, 37, 31, 38, 32, 19, 26, 20, 14, 21, 15, 22, 16, 23, 17, 24, 18, 
      25 ], [ 13, 7, 1, 8, 2, 9, 3, 10, 4, 11, 5, 12, 6, 33, 27, 34, 28, 35, 
      29, 36, 30, 37, 31, 38, 32, 39, 26, 20, 14, 21, 15, 22, 16, 23, 17, 24, 
      18, 25, 19 ], 
  [ 7, 1, 8, 2, 9, 3, 10, 4, 11, 5, 12, 6, 13, 27, 34, 28, 35, 29, 36, 30, 
      37, 31, 38, 32, 39, 33, 20, 14, 21, 15, 22, 16, 23, 17, 24, 18, 25, 19, 
      26 ], [ 34, 28, 35, 29, 36, 30, 37, 31, 38, 32, 39, 33, 27, 14, 21, 15, 
      22, 16, 23, 17, 24, 18, 25, 19, 26, 20, 7, 1, 8, 2, 9, 3, 10, 4, 11, 5, 
      12, 6, 13 ], 
  [ 28, 35, 29, 36, 30, 37, 31, 38, 32, 39, 33, 27, 34, 21, 15, 22, 16, 23, 
      17, 24, 18, 25, 19, 26, 20, 14, 1, 8, 2, 9, 3, 10, 4, 11, 5, 12, 6, 13, 
      7 ], [ 35, 29, 36, 30, 37, 31, 38, 32, 39, 33, 27, 34, 28, 15, 22, 16, 
      23, 17, 24, 18, 25, 19, 26, 20, 14, 21, 8, 2, 9, 3, 10, 4, 11, 5, 12, 
      6, 13, 7, 1 ], 
  [ 29, 36, 30, 37, 31, 38, 32, 39, 33, 27, 34, 28, 35, 22, 16, 23, 17, 24, 
      18, 25, 19, 26, 20, 14, 21, 15, 2, 9, 3, 10, 4, 11, 5, 12, 6, 13, 7, 1, 
      8 ], [ 36, 30, 37, 31, 38, 32, 39, 33, 27, 34, 28, 35, 29, 16, 23, 17, 
      24, 18, 25, 19, 26, 20, 14, 21, 15, 22, 9, 3, 10, 4, 11, 5, 12, 6, 13, 
      7, 1, 8, 2 ], 
  [ 30, 37, 31, 38, 32, 39, 33, 27, 34, 28, 35, 29, 36, 23, 17, 24, 18, 25, 
      19, 26, 20, 14, 21, 15, 22, 16, 3, 10, 4, 11, 5, 12, 6, 13, 7, 1, 8, 2, 
      9 ], [ 37, 31, 38, 32, 39, 33, 27, 34, 28, 35, 29, 36, 30, 17, 24, 18, 
      25, 19, 26, 20, 14, 21, 15, 22, 16, 23, 10, 4, 11, 5, 12, 6, 13, 7, 1, 
      8, 2, 9, 3 ], 
  [ 31, 38, 32, 39, 33, 27, 34, 28, 35, 29, 36, 30, 37, 24, 18, 25, 19, 26, 
      20, 14, 21, 15, 22, 16, 23, 17, 4, 11, 5, 12, 6, 13, 7, 1, 8, 2, 9, 3, 
      10 ], [ 38, 32, 39, 33, 27, 34, 28, 35, 29, 36, 30, 37, 31, 18, 25, 19, 
      26, 20, 14, 21, 15, 22, 16, 23, 17, 24, 11, 5, 12, 6, 13, 7, 1, 8, 2, 
      9, 3, 10, 4 ], 
  [ 32, 39, 33, 27, 34, 28, 35, 29, 36, 30, 37, 31, 38, 25, 19, 26, 20, 14, 
      21, 15, 22, 16, 23, 17, 24, 18, 5, 12, 6, 13, 7, 1, 8, 2, 9, 3, 10, 4, 
      11 ], [ 39, 33, 27, 34, 28, 35, 29, 36, 30, 37, 31, 38, 32, 19, 26, 20, 
      14, 21, 15, 22, 16, 23, 17, 24, 18, 25, 12, 6, 13, 7, 1, 8, 2, 9, 3, 
      10, 4, 11, 5 ], 
  [ 33, 27, 34, 28, 35, 29, 36, 30, 37, 31, 38, 32, 39, 26, 20, 14, 21, 15, 
      22, 16, 23, 17, 24, 18, 25, 19, 6, 13, 7, 1, 8, 2, 9, 3, 10, 4, 11, 5, 
      12 ], [ 27, 34, 28, 35, 29, 36, 30, 37, 31, 38, 32, 39, 33, 20, 14, 21, 
      15, 22, 16, 23, 17, 24, 18, 25, 19, 26, 13, 7, 1, 8, 2, 9, 3, 10, 4, 
      11, 5, 12, 6 ], 
  [ 14, 21, 15, 22, 16, 23, 17, 24, 18, 25, 19, 26, 20, 7, 1, 8, 2, 9, 3, 10, 
      4, 11, 5, 12, 6, 13, 27, 34, 28, 35, 29, 36, 30, 37, 31, 38, 32, 39, 33 
     ], [ 21, 15, 22, 16, 23, 17, 24, 18, 25, 19, 26, 20, 14, 1, 8, 2, 9, 3, 
      10, 4, 11, 5, 12, 6, 13, 7, 34, 28, 35, 29, 36, 30, 37, 31, 38, 32, 39, 
      33, 27 ], 
  [ 15, 22, 16, 23, 17, 24, 18, 25, 19, 26, 20, 14, 21, 8, 2, 9, 3, 10, 4, 
      11, 5, 12, 6, 13, 7, 1, 28, 35, 29, 36, 30, 37, 31, 38, 32, 39, 33, 27, 
      34 ], 
  [ 22, 16, 23, 17, 24, 18, 25, 19, 26, 20, 14, 21, 15, 2, 9, 3, 10, 4, 11, 
      5, 12, 6, 13, 7, 1, 8, 35, 29, 36, 30, 37, 31, 38, 32, 39, 33, 27, 34, 
      28 ], [ 16, 23, 17, 24, 18, 25, 19, 26, 20, 14, 21, 15, 22, 9, 3, 10, 
      4, 11, 5, 12, 6, 13, 7, 1, 8, 2, 29, 36, 30, 37, 31, 38, 32, 39, 33, 
      27, 34, 28, 35 ], 
  [ 23, 17, 24, 18, 25, 19, 26, 20, 14, 21, 15, 22, 16, 3, 10, 4, 11, 5, 12, 
      6, 13, 7, 1, 8, 2, 9, 36, 30, 37, 31, 38, 32, 39, 33, 27, 34, 28, 35, 
      29 ], [ 17, 24, 18, 25, 19, 26, 20, 14, 21, 15, 22, 16, 23, 10, 4, 11, 
      5, 12, 6, 13, 7, 1, 8, 2, 9, 3, 30, 37, 31, 38, 32, 39, 33, 27, 34, 28, 
      35, 29, 36 ], 
  [ 24, 18, 25, 19, 26, 20, 14, 21, 15, 22, 16, 23, 17, 4, 11, 5, 12, 6, 13, 
      7, 1, 8, 2, 9, 3, 10, 37, 31, 38, 32, 39, 33, 27, 34, 28, 35, 29, 36, 
      30 ], [ 18, 25, 19, 26, 20, 14, 21, 15, 22, 16, 23, 17, 24, 11, 5, 12, 
      6, 13, 7, 1, 8, 2, 9, 3, 10, 4, 31, 38, 32, 39, 33, 27, 34, 28, 35, 29, 
      36, 30, 37 ], 
  [ 25, 19, 26, 20, 14, 21, 15, 22, 16, 23, 17, 24, 18, 5, 12, 6, 13, 7, 1, 
      8, 2, 9, 3, 10, 4, 11, 38, 32, 39, 33, 27, 34, 28, 35, 29, 36, 30, 37, 
      31 ], [ 19, 26, 20, 14, 21, 15, 22, 16, 23, 17, 24, 18, 25, 12, 6, 13, 
      7, 1, 8, 2, 9, 3, 10, 4, 11, 5, 32, 39, 33, 27, 34, 28, 35, 29, 36, 30, 
      37, 31, 38 ], 
  [ 26, 20, 14, 21, 15, 22, 16, 23, 17, 24, 18, 25, 19, 6, 13, 7, 1, 8, 2, 9, 
      3, 10, 4, 11, 5, 12, 39, 33, 27, 34, 28, 35, 29, 36, 30, 37, 31, 38, 32 
     ], [ 20, 14, 21, 15, 22, 16, 23, 17, 24, 18, 25, 19, 26, 13, 7, 1, 8, 2, 
      9, 3, 10, 4, 11, 5, 12, 6, 33, 27, 34, 28, 35, 29, 36, 30, 37, 31, 38, 
      32, 39 ] ]);
QUANDLES[39].implemented := 10;
QUANDLES[39].rack[10] := rec( size := 39, matrix :=
[ [ 1, 3, 5, 7, 9, 11, 13, 2, 4, 6, 8, 10, 12, 27, 29, 31, 33, 35, 37, 39, 
      28, 30, 32, 34, 36, 38, 26, 15, 17, 19, 21, 23, 25, 14, 16, 18, 20, 22, 
      24 ], [ 13, 2, 4, 6, 8, 10, 12, 1, 3, 5, 7, 9, 11, 39, 28, 30, 32, 34, 
      36, 38, 27, 29, 31, 33, 35, 37, 25, 14, 16, 18, 20, 22, 24, 26, 15, 17, 
      19, 21, 23 ], 
  [ 12, 1, 3, 5, 7, 9, 11, 13, 2, 4, 6, 8, 10, 38, 27, 29, 31, 33, 35, 37, 
      39, 28, 30, 32, 34, 36, 24, 26, 15, 17, 19, 21, 23, 25, 14, 16, 18, 20, 
      22 ], [ 11, 13, 2, 4, 6, 8, 10, 12, 1, 3, 5, 7, 9, 37, 39, 28, 30, 32, 
      34, 36, 38, 27, 29, 31, 33, 35, 23, 25, 14, 16, 18, 20, 22, 24, 26, 15, 
      17, 19, 21 ], 
  [ 10, 12, 1, 3, 5, 7, 9, 11, 13, 2, 4, 6, 8, 36, 38, 27, 29, 31, 33, 35, 
      37, 39, 28, 30, 32, 34, 22, 24, 26, 15, 17, 19, 21, 23, 25, 14, 16, 18, 
      20 ], [ 9, 11, 13, 2, 4, 6, 8, 10, 12, 1, 3, 5, 7, 35, 37, 39, 28, 30, 
      32, 34, 36, 38, 27, 29, 31, 33, 21, 23, 25, 14, 16, 18, 20, 22, 24, 26, 
      15, 17, 19 ], 
  [ 8, 10, 12, 1, 3, 5, 7, 9, 11, 13, 2, 4, 6, 34, 36, 38, 27, 29, 31, 33, 
      35, 37, 39, 28, 30, 32, 20, 22, 24, 26, 15, 17, 19, 21, 23, 25, 14, 16, 
      18 ], [ 7, 9, 11, 13, 2, 4, 6, 8, 10, 12, 1, 3, 5, 33, 35, 37, 39, 28, 
      30, 32, 34, 36, 38, 27, 29, 31, 19, 21, 23, 25, 14, 16, 18, 20, 22, 24, 
      26, 15, 17 ], 
  [ 6, 8, 10, 12, 1, 3, 5, 7, 9, 11, 13, 2, 4, 32, 34, 36, 38, 27, 29, 31, 
      33, 35, 37, 39, 28, 30, 18, 20, 22, 24, 26, 15, 17, 19, 21, 23, 25, 14, 
      16 ], [ 5, 7, 9, 11, 13, 2, 4, 6, 8, 10, 12, 1, 3, 31, 33, 35, 37, 39, 
      28, 30, 32, 34, 36, 38, 27, 29, 17, 19, 21, 23, 25, 14, 16, 18, 20, 22, 
      24, 26, 15 ], 
  [ 4, 6, 8, 10, 12, 1, 3, 5, 7, 9, 11, 13, 2, 30, 32, 34, 36, 38, 27, 29, 
      31, 33, 35, 37, 39, 28, 16, 18, 20, 22, 24, 26, 15, 17, 19, 21, 23, 25, 
      14 ], [ 3, 5, 7, 9, 11, 13, 2, 4, 6, 8, 10, 12, 1, 29, 31, 33, 35, 37, 
      39, 28, 30, 32, 34, 36, 38, 27, 15, 17, 19, 21, 23, 25, 14, 16, 18, 20, 
      22, 24, 26 ], 
  [ 2, 4, 6, 8, 10, 12, 1, 3, 5, 7, 9, 11, 13, 28, 30, 32, 34, 36, 38, 27, 
      29, 31, 33, 35, 37, 39, 14, 16, 18, 20, 22, 24, 26, 15, 17, 19, 21, 23, 
      25 ], [ 28, 30, 32, 34, 36, 38, 27, 29, 31, 33, 35, 37, 39, 14, 16, 18, 
      20, 22, 24, 26, 15, 17, 19, 21, 23, 25, 13, 2, 4, 6, 8, 10, 12, 1, 3, 
      5, 7, 9, 11 ], 
  [ 27, 29, 31, 33, 35, 37, 39, 28, 30, 32, 34, 36, 38, 26, 15, 17, 19, 21, 
      23, 25, 14, 16, 18, 20, 22, 24, 12, 1, 3, 5, 7, 9, 11, 13, 2, 4, 6, 8, 
      10 ], [ 39, 28, 30, 32, 34, 36, 38, 27, 29, 31, 33, 35, 37, 25, 14, 16, 
      18, 20, 22, 24, 26, 15, 17, 19, 21, 23, 11, 13, 2, 4, 6, 8, 10, 12, 1, 
      3, 5, 7, 9 ], 
  [ 38, 27, 29, 31, 33, 35, 37, 39, 28, 30, 32, 34, 36, 24, 26, 15, 17, 19, 
      21, 23, 25, 14, 16, 18, 20, 22, 10, 12, 1, 3, 5, 7, 9, 11, 13, 2, 4, 6, 
      8 ], [ 37, 39, 28, 30, 32, 34, 36, 38, 27, 29, 31, 33, 35, 23, 25, 14, 
      16, 18, 20, 22, 24, 26, 15, 17, 19, 21, 9, 11, 13, 2, 4, 6, 8, 10, 12, 
      1, 3, 5, 7 ], 
  [ 36, 38, 27, 29, 31, 33, 35, 37, 39, 28, 30, 32, 34, 22, 24, 26, 15, 17, 
      19, 21, 23, 25, 14, 16, 18, 20, 8, 10, 12, 1, 3, 5, 7, 9, 11, 13, 2, 4, 
      6 ], [ 35, 37, 39, 28, 30, 32, 34, 36, 38, 27, 29, 31, 33, 21, 23, 25, 
      14, 16, 18, 20, 22, 24, 26, 15, 17, 19, 7, 9, 11, 13, 2, 4, 6, 8, 10, 
      12, 1, 3, 5 ], 
  [ 34, 36, 38, 27, 29, 31, 33, 35, 37, 39, 28, 30, 32, 20, 22, 24, 26, 15, 
      17, 19, 21, 23, 25, 14, 16, 18, 6, 8, 10, 12, 1, 3, 5, 7, 9, 11, 13, 2, 
      4 ], [ 33, 35, 37, 39, 28, 30, 32, 34, 36, 38, 27, 29, 31, 19, 21, 23, 
      25, 14, 16, 18, 20, 22, 24, 26, 15, 17, 5, 7, 9, 11, 13, 2, 4, 6, 8, 
      10, 12, 1, 3 ], 
  [ 32, 34, 36, 38, 27, 29, 31, 33, 35, 37, 39, 28, 30, 18, 20, 22, 24, 26, 
      15, 17, 19, 21, 23, 25, 14, 16, 4, 6, 8, 10, 12, 1, 3, 5, 7, 9, 11, 13, 
      2 ], [ 31, 33, 35, 37, 39, 28, 30, 32, 34, 36, 38, 27, 29, 17, 19, 21, 
      23, 25, 14, 16, 18, 20, 22, 24, 26, 15, 3, 5, 7, 9, 11, 13, 2, 4, 6, 8, 
      10, 12, 1 ], 
  [ 30, 32, 34, 36, 38, 27, 29, 31, 33, 35, 37, 39, 28, 16, 18, 20, 22, 24, 
      26, 15, 17, 19, 21, 23, 25, 14, 2, 4, 6, 8, 10, 12, 1, 3, 5, 7, 9, 11, 
      13 ], [ 29, 31, 33, 35, 37, 39, 28, 30, 32, 34, 36, 38, 27, 15, 17, 19, 
      21, 23, 25, 14, 16, 18, 20, 22, 24, 26, 1, 3, 5, 7, 9, 11, 13, 2, 4, 6, 
      8, 10, 12 ], 
  [ 15, 17, 19, 21, 23, 25, 14, 16, 18, 20, 22, 24, 26, 1, 3, 5, 7, 9, 11, 
      13, 2, 4, 6, 8, 10, 12, 27, 29, 31, 33, 35, 37, 39, 28, 30, 32, 34, 36, 
      38 ], [ 14, 16, 18, 20, 22, 24, 26, 15, 17, 19, 21, 23, 25, 13, 2, 4, 
      6, 8, 10, 12, 1, 3, 5, 7, 9, 11, 39, 28, 30, 32, 34, 36, 38, 27, 29, 
      31, 33, 35, 37 ], 
  [ 26, 15, 17, 19, 21, 23, 25, 14, 16, 18, 20, 22, 24, 12, 1, 3, 5, 7, 9, 
      11, 13, 2, 4, 6, 8, 10, 38, 27, 29, 31, 33, 35, 37, 39, 28, 30, 32, 34, 
      36 ], [ 25, 14, 16, 18, 20, 22, 24, 26, 15, 17, 19, 21, 23, 11, 13, 2, 
      4, 6, 8, 10, 12, 1, 3, 5, 7, 9, 37, 39, 28, 30, 32, 34, 36, 38, 27, 29, 
      31, 33, 35 ], 
  [ 24, 26, 15, 17, 19, 21, 23, 25, 14, 16, 18, 20, 22, 10, 12, 1, 3, 5, 7, 
      9, 11, 13, 2, 4, 6, 8, 36, 38, 27, 29, 31, 33, 35, 37, 39, 28, 30, 32, 
      34 ], [ 23, 25, 14, 16, 18, 20, 22, 24, 26, 15, 17, 19, 21, 9, 11, 13, 
      2, 4, 6, 8, 10, 12, 1, 3, 5, 7, 35, 37, 39, 28, 30, 32, 34, 36, 38, 27, 
      29, 31, 33 ], 
  [ 22, 24, 26, 15, 17, 19, 21, 23, 25, 14, 16, 18, 20, 8, 10, 12, 1, 3, 5, 
      7, 9, 11, 13, 2, 4, 6, 34, 36, 38, 27, 29, 31, 33, 35, 37, 39, 28, 30, 
      32 ], [ 21, 23, 25, 14, 16, 18, 20, 22, 24, 26, 15, 17, 19, 7, 9, 11, 
      13, 2, 4, 6, 8, 10, 12, 1, 3, 5, 33, 35, 37, 39, 28, 30, 32, 34, 36, 
      38, 27, 29, 31 ], 
  [ 20, 22, 24, 26, 15, 17, 19, 21, 23, 25, 14, 16, 18, 6, 8, 10, 12, 1, 3, 
      5, 7, 9, 11, 13, 2, 4, 32, 34, 36, 38, 27, 29, 31, 33, 35, 37, 39, 28, 
      30 ], 
  [ 19, 21, 23, 25, 14, 16, 18, 20, 22, 24, 26, 15, 17, 5, 7, 9, 11, 13, 2, 
      4, 6, 8, 10, 12, 1, 3, 31, 33, 35, 37, 39, 28, 30, 32, 34, 36, 38, 27, 
      29 ], 
  [ 18, 20, 22, 24, 26, 15, 17, 19, 21, 23, 25, 14, 16, 4, 6, 8, 10, 12, 1, 
      3, 5, 7, 9, 11, 13, 2, 30, 32, 34, 36, 38, 27, 29, 31, 33, 35, 37, 39, 
      28 ], [ 17, 19, 21, 23, 25, 14, 16, 18, 20, 22, 24, 26, 15, 3, 5, 7, 9, 
      11, 13, 2, 4, 6, 8, 10, 12, 1, 29, 31, 33, 35, 37, 39, 28, 30, 32, 34, 
      36, 38, 27 ], 
  [ 16, 18, 20, 22, 24, 26, 15, 17, 19, 21, 23, 25, 14, 2, 4, 6, 8, 10, 12, 
      1, 3, 5, 7, 9, 11, 13, 28, 30, 32, 34, 36, 38, 27, 29, 31, 33, 35, 37, 
      39 ] ]);
QUANDLES[39].implemented := 11;
QUANDLES[39].rack[11] := rec( size := 39, matrix :=
[ [ 1, 7, 13, 6, 12, 5, 11, 4, 10, 3, 9, 2, 8, 30, 36, 29, 35, 28, 34, 27, 
      33, 39, 32, 38, 31, 37, 19, 25, 18, 24, 17, 23, 16, 22, 15, 21, 14, 20, 
      26 ], [ 9, 2, 8, 1, 7, 13, 6, 12, 5, 11, 4, 10, 3, 38, 31, 37, 30, 36, 
      29, 35, 28, 34, 27, 33, 39, 32, 14, 20, 26, 19, 25, 18, 24, 17, 23, 16, 
      22, 15, 21 ], 
  [ 4, 10, 3, 9, 2, 8, 1, 7, 13, 6, 12, 5, 11, 33, 39, 32, 38, 31, 37, 30, 
      36, 29, 35, 28, 34, 27, 22, 15, 21, 14, 20, 26, 19, 25, 18, 24, 17, 23, 
      16 ], [ 12, 5, 11, 4, 10, 3, 9, 2, 8, 1, 7, 13, 6, 28, 34, 27, 33, 39, 
      32, 38, 31, 37, 30, 36, 29, 35, 17, 23, 16, 22, 15, 21, 14, 20, 26, 19, 
      25, 18, 24 ], 
  [ 7, 13, 6, 12, 5, 11, 4, 10, 3, 9, 2, 8, 1, 36, 29, 35, 28, 34, 27, 33, 
      39, 32, 38, 31, 37, 30, 25, 18, 24, 17, 23, 16, 22, 15, 21, 14, 20, 26, 
      19 ], [ 2, 8, 1, 7, 13, 6, 12, 5, 11, 4, 10, 3, 9, 31, 37, 30, 36, 29, 
      35, 28, 34, 27, 33, 39, 32, 38, 20, 26, 19, 25, 18, 24, 17, 23, 16, 22, 
      15, 21, 14 ], 
  [ 10, 3, 9, 2, 8, 1, 7, 13, 6, 12, 5, 11, 4, 39, 32, 38, 31, 37, 30, 36, 
      29, 35, 28, 34, 27, 33, 15, 21, 14, 20, 26, 19, 25, 18, 24, 17, 23, 16, 
      22 ], [ 5, 11, 4, 10, 3, 9, 2, 8, 1, 7, 13, 6, 12, 34, 27, 33, 39, 32, 
      38, 31, 37, 30, 36, 29, 35, 28, 23, 16, 22, 15, 21, 14, 20, 26, 19, 25, 
      18, 24, 17 ], 
  [ 13, 6, 12, 5, 11, 4, 10, 3, 9, 2, 8, 1, 7, 29, 35, 28, 34, 27, 33, 39, 
      32, 38, 31, 37, 30, 36, 18, 24, 17, 23, 16, 22, 15, 21, 14, 20, 26, 19, 
      25 ], [ 8, 1, 7, 13, 6, 12, 5, 11, 4, 10, 3, 9, 2, 37, 30, 36, 29, 35, 
      28, 34, 27, 33, 39, 32, 38, 31, 26, 19, 25, 18, 24, 17, 23, 16, 22, 15, 
      21, 14, 20 ], 
  [ 3, 9, 2, 8, 1, 7, 13, 6, 12, 5, 11, 4, 10, 32, 38, 31, 37, 30, 36, 29, 
      35, 28, 34, 27, 33, 39, 21, 14, 20, 26, 19, 25, 18, 24, 17, 23, 16, 22, 
      15 ], [ 11, 4, 10, 3, 9, 2, 8, 1, 7, 13, 6, 12, 5, 27, 33, 39, 32, 38, 
      31, 37, 30, 36, 29, 35, 28, 34, 16, 22, 15, 21, 14, 20, 26, 19, 25, 18, 
      24, 17, 23 ], 
  [ 6, 12, 5, 11, 4, 10, 3, 9, 2, 8, 1, 7, 13, 35, 28, 34, 27, 33, 39, 32, 
      38, 31, 37, 30, 36, 29, 24, 17, 23, 16, 22, 15, 21, 14, 20, 26, 19, 25, 
      18 ], [ 38, 31, 37, 30, 36, 29, 35, 28, 34, 27, 33, 39, 32, 14, 20, 26, 
      19, 25, 18, 24, 17, 23, 16, 22, 15, 21, 3, 9, 2, 8, 1, 7, 13, 6, 12, 5, 
      11, 4, 10 ], 
  [ 33, 39, 32, 38, 31, 37, 30, 36, 29, 35, 28, 34, 27, 22, 15, 21, 14, 20, 
      26, 19, 25, 18, 24, 17, 23, 16, 11, 4, 10, 3, 9, 2, 8, 1, 7, 13, 6, 12, 
      5 ], [ 28, 34, 27, 33, 39, 32, 38, 31, 37, 30, 36, 29, 35, 17, 23, 16, 
      22, 15, 21, 14, 20, 26, 19, 25, 18, 24, 6, 12, 5, 11, 4, 10, 3, 9, 2, 
      8, 1, 7, 13 ], 
  [ 36, 29, 35, 28, 34, 27, 33, 39, 32, 38, 31, 37, 30, 25, 18, 24, 17, 23, 
      16, 22, 15, 21, 14, 20, 26, 19, 1, 7, 13, 6, 12, 5, 11, 4, 10, 3, 9, 2, 
      8 ], [ 31, 37, 30, 36, 29, 35, 28, 34, 27, 33, 39, 32, 38, 20, 26, 19, 
      25, 18, 24, 17, 23, 16, 22, 15, 21, 14, 9, 2, 8, 1, 7, 13, 6, 12, 5, 
      11, 4, 10, 3 ], 
  [ 39, 32, 38, 31, 37, 30, 36, 29, 35, 28, 34, 27, 33, 15, 21, 14, 20, 26, 
      19, 25, 18, 24, 17, 23, 16, 22, 4, 10, 3, 9, 2, 8, 1, 7, 13, 6, 12, 5, 
      11 ], [ 34, 27, 33, 39, 32, 38, 31, 37, 30, 36, 29, 35, 28, 23, 16, 22, 
      15, 21, 14, 20, 26, 19, 25, 18, 24, 17, 12, 5, 11, 4, 10, 3, 9, 2, 8, 
      1, 7, 13, 6 ], 
  [ 29, 35, 28, 34, 27, 33, 39, 32, 38, 31, 37, 30, 36, 18, 24, 17, 23, 16, 
      22, 15, 21, 14, 20, 26, 19, 25, 7, 13, 6, 12, 5, 11, 4, 10, 3, 9, 2, 8, 
      1 ], [ 37, 30, 36, 29, 35, 28, 34, 27, 33, 39, 32, 38, 31, 26, 19, 25, 
      18, 24, 17, 23, 16, 22, 15, 21, 14, 20, 2, 8, 1, 7, 13, 6, 12, 5, 11, 
      4, 10, 3, 9 ], 
  [ 32, 38, 31, 37, 30, 36, 29, 35, 28, 34, 27, 33, 39, 21, 14, 20, 26, 19, 
      25, 18, 24, 17, 23, 16, 22, 15, 10, 3, 9, 2, 8, 1, 7, 13, 6, 12, 5, 11, 
      4 ], [ 27, 33, 39, 32, 38, 31, 37, 30, 36, 29, 35, 28, 34, 16, 22, 15, 
      21, 14, 20, 26, 19, 25, 18, 24, 17, 23, 5, 11, 4, 10, 3, 9, 2, 8, 1, 7, 
      13, 6, 12 ], 
  [ 35, 28, 34, 27, 33, 39, 32, 38, 31, 37, 30, 36, 29, 24, 17, 23, 16, 22, 
      15, 21, 14, 20, 26, 19, 25, 18, 13, 6, 12, 5, 11, 4, 10, 3, 9, 2, 8, 1, 
      7 ], [ 30, 36, 29, 35, 28, 34, 27, 33, 39, 32, 38, 31, 37, 19, 25, 18, 
      24, 17, 23, 16, 22, 15, 21, 14, 20, 26, 8, 1, 7, 13, 6, 12, 5, 11, 4, 
      10, 3, 9, 2 ], 
  [ 22, 15, 21, 14, 20, 26, 19, 25, 18, 24, 17, 23, 16, 11, 4, 10, 3, 9, 2, 
      8, 1, 7, 13, 6, 12, 5, 27, 33, 39, 32, 38, 31, 37, 30, 36, 29, 35, 28, 
      34 ], [ 17, 23, 16, 22, 15, 21, 14, 20, 26, 19, 25, 18, 24, 6, 12, 5, 
      11, 4, 10, 3, 9, 2, 8, 1, 7, 13, 35, 28, 34, 27, 33, 39, 32, 38, 31, 
      37, 30, 36, 29 ], 
  [ 25, 18, 24, 17, 23, 16, 22, 15, 21, 14, 20, 26, 19, 1, 7, 13, 6, 12, 5, 
      11, 4, 10, 3, 9, 2, 8, 30, 36, 29, 35, 28, 34, 27, 33, 39, 32, 38, 31, 
      37 ], [ 20, 26, 19, 25, 18, 24, 17, 23, 16, 22, 15, 21, 14, 9, 2, 8, 1, 
      7, 13, 6, 12, 5, 11, 4, 10, 3, 38, 31, 37, 30, 36, 29, 35, 28, 34, 27, 
      33, 39, 32 ], 
  [ 15, 21, 14, 20, 26, 19, 25, 18, 24, 17, 23, 16, 22, 4, 10, 3, 9, 2, 8, 1, 
      7, 13, 6, 12, 5, 11, 33, 39, 32, 38, 31, 37, 30, 36, 29, 35, 28, 34, 27 
     ], [ 23, 16, 22, 15, 21, 14, 20, 26, 19, 25, 18, 24, 17, 12, 5, 11, 4, 
      10, 3, 9, 2, 8, 1, 7, 13, 6, 28, 34, 27, 33, 39, 32, 38, 31, 37, 30, 
      36, 29, 35 ], 
  [ 18, 24, 17, 23, 16, 22, 15, 21, 14, 20, 26, 19, 25, 7, 13, 6, 12, 5, 11, 
      4, 10, 3, 9, 2, 8, 1, 36, 29, 35, 28, 34, 27, 33, 39, 32, 38, 31, 37, 
      30 ], [ 26, 19, 25, 18, 24, 17, 23, 16, 22, 15, 21, 14, 20, 2, 8, 1, 7, 
      13, 6, 12, 5, 11, 4, 10, 3, 9, 31, 37, 30, 36, 29, 35, 28, 34, 27, 33, 
      39, 32, 38 ], 
  [ 21, 14, 20, 26, 19, 25, 18, 24, 17, 23, 16, 22, 15, 10, 3, 9, 2, 8, 1, 7, 
      13, 6, 12, 5, 11, 4, 39, 32, 38, 31, 37, 30, 36, 29, 35, 28, 34, 27, 33 
     ], [ 16, 22, 15, 21, 14, 20, 26, 19, 25, 18, 24, 17, 23, 5, 11, 4, 10, 
      3, 9, 2, 8, 1, 7, 13, 6, 12, 34, 27, 33, 39, 32, 38, 31, 37, 30, 36, 
      29, 35, 28 ], 
  [ 24, 17, 23, 16, 22, 15, 21, 14, 20, 26, 19, 25, 18, 13, 6, 12, 5, 11, 4, 
      10, 3, 9, 2, 8, 1, 7, 29, 35, 28, 34, 27, 33, 39, 32, 38, 31, 37, 30, 
      36 ], 
  [ 19, 25, 18, 24, 17, 23, 16, 22, 15, 21, 14, 20, 26, 8, 1, 7, 13, 6, 12, 
      5, 11, 4, 10, 3, 9, 2, 37, 30, 36, 29, 35, 28, 34, 27, 33, 39, 32, 38, 
      31 ], [ 14, 20, 26, 19, 25, 18, 24, 17, 23, 16, 22, 15, 21, 3, 9, 2, 8, 
      1, 7, 13, 6, 12, 5, 11, 4, 10, 32, 38, 31, 37, 30, 36, 29, 35, 28, 34, 
      27, 33, 39 ] ]);
QUANDLES[39].implemented := 12;
QUANDLES[39].rack[12] := rec( size := 39, matrix :=
[ [ 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 28, 27, 39, 38, 37, 36, 35, 
      34, 33, 32, 31, 30, 29, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 
      17 ], [ 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 27, 39, 38, 37, 36, 
      35, 34, 33, 32, 31, 30, 29, 28, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 
      18, 17, 16 ], 
  [ 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 39, 38, 37, 36, 35, 34, 33, 
      32, 31, 30, 29, 28, 27, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 
      15 ], [ 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 38, 37, 36, 35, 34, 
      33, 32, 31, 30, 29, 28, 27, 39, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 
      16, 15, 14 ], 
  [ 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 37, 36, 35, 34, 33, 32, 31, 
      30, 29, 28, 27, 39, 38, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 
      26 ], [ 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 36, 35, 34, 33, 32, 
      31, 30, 29, 28, 27, 39, 38, 37, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 
      14, 26, 25 ], 
  [ 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 35, 34, 33, 32, 31, 30, 29, 
      28, 27, 39, 38, 37, 36, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 
      24 ], [ 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 34, 33, 32, 31, 30, 
      29, 28, 27, 39, 38, 37, 36, 35, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 
      25, 24, 23 ], 
  [ 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 33, 32, 31, 30, 29, 28, 27, 
      39, 38, 37, 36, 35, 34, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 
      22 ], [ 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 32, 31, 30, 29, 28, 
      27, 39, 38, 37, 36, 35, 34, 33, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 
      23, 22, 21 ], 
  [ 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 31, 30, 29, 28, 27, 39, 38, 
      37, 36, 35, 34, 33, 32, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 
      20 ], [ 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 30, 29, 28, 27, 39, 
      38, 37, 36, 35, 34, 33, 32, 31, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 
      21, 20, 19 ], 
  [ 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 29, 28, 27, 39, 38, 37, 36, 
      35, 34, 33, 32, 31, 30, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 
      18 ], [ 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 14, 26, 25, 
      24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 2, 1, 13, 12, 11, 10, 9, 8, 7, 
      6, 5, 4, 3 ], 
  [ 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 16, 15, 14, 26, 25, 
      24, 23, 22, 21, 20, 19, 18, 17, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 
      2 ], [ 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 18, 17, 16, 
      15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 13, 12, 11, 10, 9, 8, 7, 6, 5, 
      4, 3, 2, 1 ], 
  [ 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 20, 19, 18, 17, 16, 
      15, 14, 26, 25, 24, 23, 22, 21, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 
      13 ], [ 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 22, 21, 20, 
      19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 
      1, 13, 12 ], 
  [ 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 24, 23, 22, 21, 20, 
      19, 18, 17, 16, 15, 14, 26, 25, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 
      11 ], [ 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 26, 25, 24, 
      23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 
      12, 11, 10 ], 
  [ 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 15, 14, 26, 25, 24, 
      23, 22, 21, 20, 19, 18, 17, 16, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 
      9 ], [ 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 17, 16, 15, 
      14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 7, 6, 5, 4, 3, 2, 1, 13, 12, 
      11, 10, 9, 8 ], 
  [ 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 19, 18, 17, 16, 15, 
      14, 26, 25, 24, 23, 22, 21, 20, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 
      7 ], [ 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 21, 20, 19, 
      18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 5, 4, 3, 2, 1, 13, 12, 11, 10, 
      9, 8, 7, 6 ], 
  [ 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 23, 22, 21, 20, 19, 
      18, 17, 16, 15, 14, 26, 25, 24, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 
      5 ], [ 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 25, 24, 23, 
      22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 3, 2, 1, 13, 12, 11, 10, 9, 8, 
      7, 6, 5, 4 ], 
  [ 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 3, 2, 1, 13, 12, 11, 
      10, 9, 8, 7, 6, 5, 4, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 
      28 ], [ 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 2, 1, 13, 
      12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 29, 28, 27, 39, 38, 37, 36, 35, 34, 
      33, 32, 31, 30 ], 
  [ 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 1, 13, 12, 11, 10, 9, 
      8, 7, 6, 5, 4, 3, 2, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32 
     ], [ 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 13, 12, 11, 10, 
      9, 8, 7, 6, 5, 4, 3, 2, 1, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 
      35, 34 ], 
  [ 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 12, 11, 10, 9, 8, 7, 
      6, 5, 4, 3, 2, 1, 13, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 
      36 ], [ 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 11, 10, 9, 
      8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 
      27, 39, 38 ], 
  [ 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 10, 9, 8, 7, 6, 5, 4, 
      3, 2, 1, 13, 12, 11, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27 
     ], [ 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 9, 8, 7, 6, 5, 
      4, 3, 2, 1, 13, 12, 11, 10, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 
      30, 29 ], 
  [ 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 8, 7, 6, 5, 4, 3, 2, 
      1, 13, 12, 11, 10, 9, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 
      31 ], [ 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 7, 6, 5, 4, 
      3, 2, 1, 13, 12, 11, 10, 9, 8, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 
      35, 34, 33 ], 
  [ 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 6, 5, 4, 3, 2, 1, 13, 
      12, 11, 10, 9, 8, 7, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35 
     ], [ 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 5, 4, 3, 2, 1, 
      13, 12, 11, 10, 9, 8, 7, 6, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 
      38, 37 ], 
  [ 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 4, 3, 2, 1, 13, 12, 
      11, 10, 9, 8, 7, 6, 5, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 
      39 ] ]);
QUANDLES[39].implemented := 13;
QUANDLES[39].rack[13] := rec( size := 39, matrix :=
[ [ 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 35, 34, 33, 32, 31, 30, 29, 
      28, 27, 39, 38, 37, 36, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 
      23 ], [ 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 34, 33, 32, 31, 30, 
      29, 28, 27, 39, 38, 37, 36, 35, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 
      24, 23, 22 ], 
  [ 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 33, 32, 31, 30, 29, 28, 27, 
      39, 38, 37, 36, 35, 34, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 
      21 ], [ 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 32, 31, 30, 29, 28, 
      27, 39, 38, 37, 36, 35, 34, 33, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 
      22, 21, 20 ], 
  [ 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 31, 30, 29, 28, 27, 39, 38, 
      37, 36, 35, 34, 33, 32, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 
      19 ], [ 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 30, 29, 28, 27, 39, 
      38, 37, 36, 35, 34, 33, 32, 31, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 
      20, 19, 18 ], 
  [ 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 29, 28, 27, 39, 38, 37, 36, 
      35, 34, 33, 32, 31, 30, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 
      17 ], [ 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 28, 27, 39, 38, 37, 
      36, 35, 34, 33, 32, 31, 30, 29, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 
      18, 17, 16 ], 
  [ 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 27, 39, 38, 37, 36, 35, 34, 
      33, 32, 31, 30, 29, 28, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 
      15 ], [ 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 39, 38, 37, 36, 35, 
      34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 
      16, 15, 14 ], 
  [ 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 38, 37, 36, 35, 34, 33, 32, 
      31, 30, 29, 28, 27, 39, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 
      26 ], [ 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 37, 36, 35, 34, 33, 
      32, 31, 30, 29, 28, 27, 39, 38, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 
      14, 26, 25 ], 
  [ 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 36, 35, 34, 33, 32, 31, 30, 
      29, 28, 27, 39, 38, 37, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 
      24 ], [ 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 14, 26, 25, 
      24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 
      12, 11, 10 ], 
  [ 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 16, 15, 14, 26, 25, 
      24, 23, 22, 21, 20, 19, 18, 17, 8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 
      9 ], [ 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 18, 17, 16, 
      15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 7, 6, 5, 4, 3, 2, 1, 13, 12, 
      11, 10, 9, 8 ], 
  [ 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 20, 19, 18, 17, 16, 
      15, 14, 26, 25, 24, 23, 22, 21, 6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 
      7 ], [ 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 22, 21, 20, 
      19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 5, 4, 3, 2, 1, 13, 12, 11, 10, 
      9, 8, 7, 6 ], 
  [ 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 24, 23, 22, 21, 20, 
      19, 18, 17, 16, 15, 14, 26, 25, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 
      5 ], [ 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 26, 25, 24, 
      23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 3, 2, 1, 13, 12, 11, 10, 9, 8, 
      7, 6, 5, 4 ], 
  [ 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 15, 14, 26, 25, 24, 
      23, 22, 21, 20, 19, 18, 17, 16, 2, 1, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 
      3 ], [ 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 17, 16, 15, 
      14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 1, 13, 12, 11, 10, 9, 8, 7, 6, 
      5, 4, 3, 2 ], 
  [ 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 19, 18, 17, 16, 15, 
      14, 26, 25, 24, 23, 22, 21, 20, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 
      1 ], [ 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 21, 20, 19, 
      18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 12, 11, 10, 9, 8, 7, 6, 5, 4, 
      3, 2, 1, 13 ], 
  [ 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 23, 22, 21, 20, 19, 
      18, 17, 16, 15, 14, 26, 25, 24, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 13, 
      12 ], [ 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 25, 24, 23, 
      22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 
      13, 12, 11 ], 
  [ 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 9, 8, 7, 6, 5, 4, 3, 
      2, 1, 13, 12, 11, 10, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 
      28 ], [ 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 8, 7, 6, 5, 
      4, 3, 2, 1, 13, 12, 11, 10, 9, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 
      32, 31, 30 ], 
  [ 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 7, 6, 5, 4, 3, 2, 1, 
      13, 12, 11, 10, 9, 8, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 
      32 ], [ 19, 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 6, 5, 4, 3, 
      2, 1, 13, 12, 11, 10, 9, 8, 7, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 
      36, 35, 34 ], 
  [ 18, 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 5, 4, 3, 2, 1, 13, 
      12, 11, 10, 9, 8, 7, 6, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 
      36 ], [ 17, 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 4, 3, 2, 1, 
      13, 12, 11, 10, 9, 8, 7, 6, 5, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 
      27, 39, 38 ], 
  [ 16, 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 3, 2, 1, 13, 12, 11, 
      10, 9, 8, 7, 6, 5, 4, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 
      27 ], [ 15, 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 2, 1, 13, 
      12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 28, 27, 39, 38, 37, 36, 35, 34, 33, 
      32, 31, 30, 29 ], 
  [ 14, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 1, 13, 12, 11, 10, 9, 
      8, 7, 6, 5, 4, 3, 2, 30, 29, 28, 27, 39, 38, 37, 36, 35, 34, 33, 32, 31 
     ], [ 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 
      9, 8, 7, 6, 5, 4, 3, 2, 1, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 35, 
      34, 33 ], 
  [ 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 12, 11, 10, 9, 8, 7, 
      6, 5, 4, 3, 2, 1, 13, 34, 33, 32, 31, 30, 29, 28, 27, 39, 38, 37, 36, 
      35 ], [ 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 11, 10, 9, 
      8, 7, 6, 5, 4, 3, 2, 1, 13, 12, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 
      39, 38, 37 ], 
  [ 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 26, 25, 24, 10, 9, 8, 7, 6, 5, 4, 
      3, 2, 1, 13, 12, 11, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 39 
     ] ]);
